diff --git a/qt/makefile b/qt/makefile index 91c1859..8ce101a 100644 --- a/qt/makefile +++ b/qt/makefile @@ -13,7 +13,7 @@ ${QT}: ${QT}.tar.gz cd $@ && patch -p1 < ../patch/qt-sources-patch.diff build: ${QT} - cd $< && (echo "yes" | ./configure -opensource -prefix=/usr/local/trolltech/qt) + cd $< && (echo "yes" | ./configure -opensource -prefix /usr/local/trolltech/qt) cd $< && make install-lin32: @@ -23,7 +23,7 @@ ${QT}-lin32: ${QT} cp -a $< $@ build-lin32: ${QT}-lin32 - cd $< && (echo "yes" | ./configure -opensource -platform linux-g++-32 -prefix=/usr/local/trolltech/qt-32bit) + cd $< && (echo "yes" | ./configure -opensource -platform linux-g++-32 -prefix /usr/local/trolltech/qt-32bit) cd $< && make .PHONY: maintainer-clean all build install build-lin32 install-lin32 diff --git a/swisssurfer/src/browser.hxx b/swisssurfer/src/browser.hxx index a2835b2..3186216 100644 --- a/swisssurfer/src/browser.hxx +++ b/swisssurfer/src/browser.hxx @@ -105,13 +105,10 @@ class Browser: public QMainWindow, protected Ui::Browser { assert(connect(_addBookmark, SIGNAL(clicked(bool)), SLOT(addBookmark()))); } - if (!_kiosk && _settings.flag("SaveWindowState") && _settings()) { - loadWin(); - for (int i(0); iselectedText()); } disconnect(_find, SIGNAL(returnPressed()), this, SLOT(rfind())); + disconnect(_find, SIGNAL(textEdited(QString)), this, SLOT(rfind())); assert(connect(_find, SIGNAL(returnPressed()), SLOT(find()))); + assert(connect(_find, SIGNAL(textEdited(QString)), SLOT(find()))); _find->setFocus(); } @@ -380,7 +379,9 @@ class Browser: public QMainWindow, protected Ui::Browser { ->selectedText()); } disconnect(_find, SIGNAL(returnPressed()), this, SLOT(find())); + disconnect(_find, SIGNAL(textEdited(QString)), this, SLOT(find())); assert(connect(_find, SIGNAL(returnPressed()), SLOT(rfind()))); + assert(connect(_find, SIGNAL(textEdited(QString)), SLOT(rfind()))); _find->setFocus(); } @@ -921,14 +922,15 @@ class Browser: public QMainWindow, protected Ui::Browser { _settings()->setValue("Window/WindowState", saveState()); } - void loadWin() { + void loadWin(bool noRrestoreTabs=true) { QStringList urls(_settings()->value("Window/Urls").toStringList()); urls.sort(); urls.removeDuplicates(); _url->addItems(urls); QStringList tabs(_settings()->value("Window/Tabs").toStringList()); - for (QStringList::iterator it(tabs.begin()); it!=tabs.end(); ++it) - load(*it, newTab()); + if (!noRrestoreTabs) + for (QStringList::iterator it(tabs.begin()); it!=tabs.end(); ++it) + load(*it, newTab()); if (_tabs->count()>1) _tabs->removeTab(0); _tabs->setTabsClosable(_tabs->count()>1); _tabs->setCurrentIndex(_settings()->value("Window/CurrentTab").toInt());