diff --git a/src/browser.hxx b/src/browser.hxx index b3ba02e..b282a82 100644 --- a/src/browser.hxx +++ b/src/browser.hxx @@ -212,10 +212,8 @@ class Browser: public QMainWindow, protected Ui::Browser { if (!settings || _kiosk) { actionSettings->setVisible(false); - actionEditBookmarks->setVisible(false); actionSaveWindowState->setVisible(false); actionLoadWindowState->setVisible(false); - delete _bookmarks; _bookmarks=0; } if (_kiosk) { actionNew->setEnabled(false); @@ -223,6 +221,8 @@ class Browser: public QMainWindow, protected Ui::Browser { actionNewTab->setEnabled(false); actionNewTab->setVisible(false); actionCloseTab->setVisible(false); + actionEditBookmarks->setVisible(false); + delete _bookmarks; _bookmarks=0; } if (!_kiosk && !_startUrl && _settings.flag("SaveWindowState") && _settings()) @@ -1386,10 +1386,12 @@ class Browser: public QMainWindow, protected Ui::Browser { (reply->header(QNetworkRequest::ContentTypeHeader).toString(), filename)); if (!type.isEmpty()) { + LOG<<"Start Application"; filename.replace(QRegExp("^(.*)\\."+type.at(0)+"$"), "\\1"); // remove extension run(reply, filename+"."+type.at(0), type.at(1)); } else { + LOG<<"Show SaveOrRunDialog"; SaveOrRunDialog choice(_kiosk, this); choice.setup(filename, reply->header(QNetworkRequest::ContentTypeHeader)