Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Commit

Permalink
[Fix] Issues with languages switch in preferences panel
Browse files Browse the repository at this point in the history
  • Loading branch information
Feldrise committed May 19, 2018
1 parent dff0780 commit 65f652c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions Core/Widgets/Preferences/GeneralPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ void GeneralPage::save()
// Save if we want to load tabs at startup
settings.setValue(QLatin1String("LoadTabsOnActivation"), m_dontLoadTabsUntilSelect->isChecked());

settings.endGroup();

// Save language
settings.beginGroup("Language");

Expand Down Expand Up @@ -233,7 +235,7 @@ void GeneralPage::setupUI()
m_layoutGroupHomePage = new QVBoxLayout();
m_layoutGroupNewTab = new QVBoxLayout();
m_layoutGroupNewSession = new QVBoxLayout();
m_layoutGroupLanguage = new QGridLayout();
m_layoutGroupLanguage = new QVBoxLayout();

m_groupHomePage = new QGroupBox(tr("Home page"), this);

Expand Down Expand Up @@ -299,9 +301,9 @@ void GeneralPage::setupUI()

m_groupLanguage->setLayout(m_layoutGroupLanguage);

m_layoutGroupLanguage->addWidget(m_descLanguage, 0, 0, 1, 1);
m_layoutGroupLanguage->addWidget(m_languages, 0, 1, 1, 1);
m_layoutGroupLanguage->addWidget(m_descLanguageNeedRestart, 1, 0, 1, 2);
m_layoutGroupLanguage->addWidget(m_descLanguage);
m_layoutGroupLanguage->addWidget(m_languages);
m_layoutGroupLanguage->addWidget(m_descLanguageNeedRestart);

m_layout->addWidget(m_groupHomePage);
m_layout->addWidget(m_groupNewTab);
Expand Down
2 changes: 1 addition & 1 deletion Core/Widgets/Preferences/GeneralPage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private slots:
QVBoxLayout* m_layoutGroupHomePage{nullptr};
QVBoxLayout* m_layoutGroupNewTab{nullptr};
QVBoxLayout* m_layoutGroupNewSession{nullptr};
QGridLayout* m_layoutGroupLanguage{nullptr};
QVBoxLayout* m_layoutGroupLanguage{nullptr};

// Group Box Home Page
QGroupBox* m_groupHomePage{nullptr};
Expand Down

0 comments on commit 65f652c

Please sign in to comment.