author | hash <hash> | 2002-08-21 20:00:48 (UTC) |
---|---|---|
committer | hash <hash> | 2002-08-21 20:00:48 (UTC) |
commit | 10739e8b7d203e56ef30011770f6d12d8b0bb270 (patch) (side-by-side diff) | |
tree | 341451202d077ed4bdf16beb696a94e494c7693c /inputmethods | |
parent | 33fb38da29cfb4b29eff08928742b8d6918eb852 (diff) | |
download | opie-10739e8b7d203e56ef30011770f6d12d8b0bb270.zip opie-10739e8b7d203e56ef30011770f6d12d8b0bb270.tar.gz opie-10739e8b7d203e56ef30011770f6d12d8b0bb270.tar.bz2 |
fixed bug where it adds blank lines to the keymap list
-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 @@ -244,8 +244,11 @@ void ConfigDlg::setMap(int index) { // ConfigDlg::addMap() {{{1 void ConfigDlg::addMap() { QString map = OFileDialog::getOpenFileName(1, QDir::home().absPath()); + + if (map.isNull()) return; + Config config ("multikey"); config.setGroup("keymaps"); QStringList maps = config.readListEntry("maps", QChar('|')); maps.append(map); |