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);