diff --git a/src/app/qupzilla.cpp b/src/app/qupzilla.cpp index 626b915ab..c3c26deee 100644 --- a/src/app/qupzilla.cpp +++ b/src/app/qupzilla.cpp @@ -1153,7 +1153,7 @@ bool QupZilla::quitApp() settings.beginGroup("Web-URL-Settings"); int afterLaunch = settings.value("afterLaunch",0).toInt(); settings.endGroup(); - bool askOnClose = !settings.value("Browser-View-Settings/DontAskOnClosing", false).toBool(); + bool askOnClose = settings.value("Browser-Tabs-Settings/AskOnClosing", false).toBool(); if (askOnClose && afterLaunch != 2 && m_tabWidget->count() > 1) { QDialog* dialog = new QDialog(this); @@ -1164,7 +1164,7 @@ bool QupZilla::quitApp() if (dialog->exec() != QDialog::Accepted) return false; if (ui->dontAskAgain->isChecked()) - settings.setValue("Browser-View-Settings/DontAskOnClosing", true); + settings.setValue("Browser-Tabs-Settings/AskOnClosing", false); } mApp->quitApplication(); diff --git a/src/navigation/locationbar.cpp b/src/navigation/locationbar.cpp index def32a2c4..98222286f 100644 --- a/src/navigation/locationbar.cpp +++ b/src/navigation/locationbar.cpp @@ -42,7 +42,11 @@ LocationBar::LocationBar(QupZilla* mainClass) m_siteIcon->setMaximumSize(35, 25); m_siteIcon->setMinimumSize(35, 25); m_siteIcon->setToolTip(tr("Show informations about this page")); +#if QT_VERSION == 0x040800 + m_siteIcon->setStyleSheet("QToolButton{border-image: url(:/icons/locationbar/searchchoose.png); margin-left:2px; padding-left: 4px; }"); +#else m_siteIcon->setStyleSheet("QToolButton{border-image: url(:/icons/locationbar/searchchoose.png); margin-left:2px;}"); +#endif m_siteIcon->setFocusPolicy(Qt::ClickFocus); m_rssIcon = new ClickableLabel(this); @@ -262,7 +266,6 @@ void LocationBar::keyPressEvent(QKeyEvent *event) { if (event->key() == Qt::Key_Escape) { setText(m_webView->url().toEncoded()); - qDebug(m_webView->url().toEncoded()); event->accept(); return; } diff --git a/src/preferences/preferences.cpp b/src/preferences/preferences.cpp index ecc813d53..3149e24dc 100644 --- a/src/preferences/preferences.cpp +++ b/src/preferences/preferences.cpp @@ -146,6 +146,7 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent) : ui->hideCloseOnTab->setChecked( settings.value("hideCloseButtonWithOneTab",false).toBool() ); ui->hideTabsOnTab->setChecked( settings.value("hideTabsWithOneTab",false).toBool() ); ui->activateLastTab->setChecked( settings.value("ActivateLastTabWhenClosingActual", false).toBool() ); + ui->askWhenClosingMultipleTabs->setChecked( settings.value("AskOnClosing", false).toBool() ); settings.endGroup(); //AddressBar settings.beginGroup("AddressBar"); @@ -604,6 +605,7 @@ void Preferences::saveSettings() settings.setValue("hideCloseButtonWithOneTab",ui->hideCloseOnTab->isChecked()); settings.setValue("hideTabsWithOneTab",ui->hideTabsOnTab->isChecked() ); settings.setValue("ActivateLastTabWhenClosingActual", ui->activateLastTab->isChecked()); + settings.setValue("AskOnClosing", ui->askWhenClosingMultipleTabs->isChecked()); settings.endGroup(); //DOWNLOADS diff --git a/src/preferences/preferences.ui b/src/preferences/preferences.ui index bc9f00bb3..66d16aac6 100644 --- a/src/preferences/preferences.ui +++ b/src/preferences/preferences.ui @@ -719,35 +719,35 @@ - + <b>Address Bar behaviour</b> - + Select all text by double clicking in address bar - + Add .com domain by pressing CTRL key - + Add .co.uk domain by pressing ALT key - + Qt::Vertical @@ -760,7 +760,7 @@ - + Qt::Vertical @@ -780,6 +780,13 @@ + + + + Ask when closing multiple tabs + + +