diff options
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r-- | src/FbCommands.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc index c789b6b..119f378 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc | |||
@@ -460,7 +460,7 @@ BindKeyCmd::BindKeyCmd(const string &keybind):m_keybind(keybind) { } | |||
460 | void BindKeyCmd::execute() { | 460 | void BindKeyCmd::execute() { |
461 | Keys* keys = Fluxbox::instance()->keys(); | 461 | Keys* keys = Fluxbox::instance()->keys(); |
462 | if (keys && keys->addBinding(m_keybind)) { | 462 | if (keys && keys->addBinding(m_keybind)) { |
463 | ofstream ofile(keys->filename().c_str(), ios::app); | 463 | ofstream ofile(Fluxbox::instance()->getKeysResource()->c_str(), ios::app); |
464 | if (!ofile) | 464 | if (!ofile) |
465 | return; | 465 | return; |
466 | ofile<<m_keybind<<endl; | 466 | ofile<<m_keybind<<endl; |