Diffstat (limited to 'inputmethods/multikey/configdlg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | inputmethods/multikey/configdlg.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inputmethods/multikey/configdlg.cpp b/inputmethods/multikey/configdlg.cpp index a9137b9..9ea59a4 100644 --- a/inputmethods/multikey/configdlg.cpp +++ b/inputmethods/multikey/configdlg.cpp | |||
@@ -245,6 +245,9 @@ void ConfigDlg::setMap(int index) { | |||
245 | void ConfigDlg::addMap() { | 245 | void ConfigDlg::addMap() { |
246 | 246 | ||
247 | QString map = OFileDialog::getOpenFileName(1, QDir::home().absPath()); | 247 | QString map = OFileDialog::getOpenFileName(1, QDir::home().absPath()); |
248 | |||
249 | if (map.isNull()) return; | ||
250 | |||
248 | Config config ("multikey"); | 251 | Config config ("multikey"); |
249 | config.setGroup("keymaps"); | 252 | config.setGroup("keymaps"); |
250 | QStringList maps = config.readListEntry("maps", QChar('|')); | 253 | QStringList maps = config.readListEntry("maps", QChar('|')); |