X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=port.cpp;h=0a5687c1d6fcd5120e959119a4d050ae6cdaa22a;hp=e8ca7b66f2c88f100f8e012d41ec195bbed860e6;hb=c830f8c8c7af33f3e18fee2b55b566f0350f3eee;hpb=ea7177a8be1e101753747669f61359f99176d129 diff --git a/port.cpp b/port.cpp index e8ca7b6..0a5687c 100644 --- a/port.cpp +++ b/port.cpp @@ -325,10 +325,12 @@ void Port::set_tone(const char *dir, const char *name) if (name == NULL) name = ""; - if (!dir || !dir[0]) + if (!dir || !dir[0]) { if (p_tones_interface[0]) dir = p_tones_interface; - dir = options.tones_dir; /* just in case we have no PmISDN instance */ + else + dir = options.tones_dir; /* just in case we have no PmISDN instance */ + } /* no counter, no eof, normal speed */ p_tone_counter = 0;