aboutsummaryrefslogtreecommitdiff
path: root/src/Keys.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Keys.cc')
-rw-r--r--src/Keys.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Keys.cc b/src/Keys.cc
index 84e5eb8..0b8efe5 100644
--- a/src/Keys.cc
+++ b/src/Keys.cc
@@ -28,6 +28,7 @@
28 28
29#include "FbTk/EventManager.hh" 29#include "FbTk/EventManager.hh"
30#include "FbTk/StringUtil.hh" 30#include "FbTk/StringUtil.hh"
31#include "FbTk/FileUtil.hh"
31#include "FbTk/App.hh" 32#include "FbTk/App.hh"
32#include "FbTk/Command.hh" 33#include "FbTk/Command.hh"
33#include "FbTk/RefCount.hh" 34#include "FbTk/RefCount.hh"
@@ -276,6 +277,10 @@ void Keys::reload() {
276 277
277 FbTk::App::instance()->sync(false); 278 FbTk::App::instance()->sync(false);
278 279
280 if (! FbTk::FileUtil::isRegularFile(m_filename.c_str())) {
281 return;
282 }
283
279 // open the file 284 // open the file
280 ifstream infile(m_filename.c_str()); 285 ifstream infile(m_filename.c_str());
281 if (!infile) { 286 if (!infile) {