author | zecke <zecke> | 2004-07-15 22:37:54 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-07-15 22:37:54 (UTC) |
commit | ce300687815f369a8db5b3d1e1ea0f2819c9b9b6 (patch) (side-by-side diff) | |
tree | 53e3ac9003ec5d46d60e1a339cbafca414e285bb | |
parent | 422e7757feae169d8c931f2f0ac1d5acc201f846 (diff) | |
download | opie-ce300687815f369a8db5b3d1e1ea0f2819c9b9b6.zip opie-ce300687815f369a8db5b3d1e1ea0f2819c9b9b6.tar.gz opie-ce300687815f369a8db5b3d1e1ea0f2819c9b9b6.tar.bz2 |
Stop crasing, do not do nasty stuff with parentWidget() which is now NULL
-rw-r--r-- | noncore/apps/keyz-cfg/cfgdlg.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/apps/keyz-cfg/cfgdlg.cpp b/noncore/apps/keyz-cfg/cfgdlg.cpp index 3965198..8d868d4 100644 --- a/noncore/apps/keyz-cfg/cfgdlg.cpp +++ b/noncore/apps/keyz-cfg/cfgdlg.cpp @@ -83,51 +83,50 @@ CfgDlg::CfgDlg(QWidget* parent, CfgFile* cf, QApplication* app, bool mod): // gl->addMultiCellWidget(enable, 7, 7, 0, 4); } CfgDlg::~CfgDlg() { } void CfgDlg::add() { if (!files->currentText().isEmpty()) { QString t = files->currentText(); files->removeItem(files->currentItem()); keymaps->insertItem(t); cfile->replaceEntry(t, ""); m.replace(t, ""); } } void CfgDlg::del() { if (!keymaps->currentText().isEmpty()) { QString t = keymaps->currentText(); keymaps->removeItem(keymaps->currentItem()); cfile->deleteEntry(t); files->insertItem(t); m.remove(files->currentText()); } } void CfgDlg::setLabel() { if (!keymaps->currentText().isEmpty()) { cfile->replaceEntry(keymaps->currentText(), label->text()); m.replace(keymaps->currentText(), label->text()); } } void CfgDlg::keymapHighlighted(const QString&text) { label->setText(*m.find(text)); } void CfgDlg::accept() { cfile->setAutorepeatDelay(ad->value()); cfile->setAutorepeatPeriod(ap->value()); CfgParser p; p.save(QPEApplication::qpeDir()+"/share/zkb/zkb.xml", *cfile); QCopEnvelope("QPE/zkb", "reload()"); QDialog::accept(); - parentWidget()->close(false); } |