1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Preferences: Correctly set show bookmarks toolbar disabled by default

This commit is contained in:
David Rosca 2018-03-24 21:47:24 +01:00
parent fae791dcc9
commit 6cd1e7e31a
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -207,8 +207,8 @@ Preferences::Preferences(BrowserWindow* window)
ui->showStatusbar->setChecked(settings.value("showStatusBar", false).toBool());
// NOTE: instantBookmarksToolbar and showBookmarksToolbar cannot be both enabled at the same time
ui->instantBookmarksToolbar->setChecked(settings.value("instantBookmarksToolbar", false).toBool());
ui->showBookmarksToolbar->setChecked(settings.value("showBookmarksToolbar", true).toBool());
ui->instantBookmarksToolbar->setDisabled(settings.value("showBookmarksToolbar", true).toBool());
ui->showBookmarksToolbar->setChecked(settings.value("showBookmarksToolbar", false).toBool());
ui->instantBookmarksToolbar->setDisabled(settings.value("showBookmarksToolbar", false).toBool());
ui->showBookmarksToolbar->setDisabled(settings.value("instantBookmarksToolbar").toBool());
connect(ui->instantBookmarksToolbar, SIGNAL(toggled(bool)), ui->showBookmarksToolbar, SLOT(setDisabled(bool)));
connect(ui->showBookmarksToolbar, SIGNAL(toggled(bool)), ui->instantBookmarksToolbar, SLOT(setDisabled(bool)));