signal-bug fixed; refs #115

master
Marc Wäckerlin 13 years ago
parent ecdfe066e8
commit c47ade3a9f
  1. 8
      src/browser.hxx
  2. 4
      src/editbookmarks.hxx

@ -148,10 +148,10 @@ class Browser: public QMainWindow, protected Ui::Browser {
}
_editbookmarks =
std::auto_ptr<EditBookmarks>(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;

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

Loading…
Cancel
Save