From c47ade3a9ff8d850c89655000c6591cac45de4ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Mon, 5 Mar 2012 13:40:02 +0000 Subject: [PATCH] signal-bug fixed; refs #115 --- src/browser.hxx | 8 ++++---- src/editbookmarks.hxx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/browser.hxx b/src/browser.hxx index 1af3b86..90cc1f1 100644 --- a/src/browser.hxx +++ b/src/browser.hxx @@ -148,10 +148,10 @@ class Browser: public QMainWindow, protected Ui::Browser { } _editbookmarks = std::auto_ptr(new EditBookmarks(combo, this)); - assert(connect(_editbookmarks.get(), SIGNAL(startEdit()), - actionAddBookmark, SLOT(setDisabled()))); - assert(connect(_editbookmarks.get(), SIGNAL(endEdit()), - actionAddBookmark, SLOT(setEnabled()))); + assert(connect(_editbookmarks.get(), SIGNAL(startEdit(bool)), + actionAddBookmark, SLOT(setDisabled(bool)))); + assert(connect(_editbookmarks.get(), SIGNAL(endEdit(bool)), + actionAddBookmark, SLOT(setEnabled(bool)))); } else { QLineEdit* label(new QLineEdit(_toolbar)); _url = label; diff --git a/src/editbookmarks.hxx b/src/editbookmarks.hxx index 73f0c2e..70fad7d 100644 --- a/src/editbookmarks.hxx +++ b/src/editbookmarks.hxx @@ -18,8 +18,8 @@ class EditBookmarks: public QDialog, protected Ui::EditBookmarks { Q_OBJECT; Q_SIGNALS: - void startEdit(); - void endEdit(); + void startEdit(bool=true); + void endEdit(bool=true); public: EditBookmarks(QComboBox* url, QWidget* p=0): QDialog(p), _url(url) { setupUi(this);