mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Fixed showing 'Preferences' window without parent.
-issue: 'Preferences::saveSettings()' doesn't work without parent.
This commit is contained in:
parent
6d4005cd7b
commit
703a41c0f4
|
@ -118,9 +118,14 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
|
|||
afterLaunchChanged(ui->afterLaunch->currentIndex());
|
||||
connect(ui->afterLaunch, SIGNAL(currentIndexChanged(int)), this, SLOT(afterLaunchChanged(int)));
|
||||
connect(ui->newTab, SIGNAL(currentIndexChanged(int)), this, SLOT(newTabChanged(int)));
|
||||
connect(ui->useCurrentBut, SIGNAL(clicked()), this, SLOT(useActualHomepage()));
|
||||
connect(ui->newTabUseCurrent, SIGNAL(clicked()), this, SLOT(useActualNewTab()));
|
||||
|
||||
if (p_QupZilla) {
|
||||
connect(ui->useCurrentBut, SIGNAL(clicked()), this, SLOT(useActualHomepage()));
|
||||
connect(ui->newTabUseCurrent, SIGNAL(clicked()), this, SLOT(useActualNewTab()));
|
||||
}
|
||||
else {
|
||||
ui->useCurrentBut->setEnabled(false);
|
||||
ui->newTabUseCurrent->setEnabled(false);
|
||||
}
|
||||
//PROFILES
|
||||
m_actProfileName = mApp->currentProfilePath();
|
||||
m_actProfileName = m_actProfileName.left(m_actProfileName.length() - 1);
|
||||
|
@ -151,8 +156,14 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
|
|||
m_themesManager = new ThemeManager(ui->themesWidget, this);
|
||||
settings.beginGroup("Browser-View-Settings");
|
||||
ui->showStatusbar->setChecked(settings.value("showStatusBar", true).toBool());
|
||||
ui->showBookmarksToolbar->setChecked(p_QupZilla->bookmarksToolbar()->isVisible());
|
||||
ui->showNavigationToolbar->setChecked(p_QupZilla->navigationBar()->isVisible());
|
||||
if (p_QupZilla) {
|
||||
ui->showBookmarksToolbar->setChecked(p_QupZilla->bookmarksToolbar()->isVisible());
|
||||
ui->showNavigationToolbar->setChecked(p_QupZilla->navigationBar()->isVisible());
|
||||
}
|
||||
else {
|
||||
ui->showBookmarksToolbar->setChecked(settings.value("showBookmarksToolbar", true).toBool());
|
||||
ui->showNavigationToolbar->setChecked(settings.value("showNavigationToolbar", true).toBool());
|
||||
}
|
||||
ui->showHome->setChecked(settings.value("showHomeButton", true).toBool());
|
||||
ui->showBackForward->setChecked(settings.value("showBackForwardButtons", true).toBool());
|
||||
ui->showAddTabButton->setChecked(settings.value("showAddTabButton", false).toBool());
|
||||
|
|
Loading…
Reference in New Issue
Block a user