From 10739e8b7d203e56ef30011770f6d12d8b0bb270 Mon Sep 17 00:00:00 2001 From: hash Date: Wed, 21 Aug 2002 20:00:48 +0000 Subject: fixed bug where it adds blank lines to the keymap list --- 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) { 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('|')); -- cgit v0.9.0.2