show bookmarks also if settings are disabled; refs #138

master
Marc Wäckerlin 12 years ago
parent 6d34c2581a
commit 56e911c46f
  1. 6
      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)

Loading…
Cancel
Save