do not try to read keyconfig file if it's NOT open.

This commit is contained in:
Andrzej Rybczak
2008-12-13 11:28:43 +01:00
parent a87afda4b7
commit 55c75355f8

View File

@@ -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())