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

master
Andrzej Rybczak 17 years ago
parent a87afda4b7
commit 55c75355f8
  1. 2
      src/settings.cpp

@ -352,7 +352,7 @@ void ReadKeys(ncmpcpp_keys &keys)
ifstream f(keys_config_file.c_str());
string key;
if (f.is_open())
if (!f.is_open())
return;
while (!f.eof())

Loading…
Cancel
Save