do not try to read keyconfig file if it's NOT open.
This commit is contained in:
@@ -352,7 +352,7 @@ void ReadKeys(ncmpcpp_keys &keys)
|
|||||||
ifstream f(keys_config_file.c_str());
|
ifstream f(keys_config_file.c_str());
|
||||||
string key;
|
string key;
|
||||||
|
|
||||||
if (f.is_open())
|
if (!f.is_open())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
while (!f.eof())
|
while (!f.eof())
|
||||||
|
|||||||
Reference in New Issue
Block a user