mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 11:37:56 -04:00
Merge pull request #765 from kiwix/settingsFix
Emit TabBar::libraryPageDisplayed(false) when creating settings view
This commit is contained in:
commit
8107d2267a
@ -63,6 +63,7 @@ TabBar::TabBar(QWidget *parent) :
|
|||||||
}
|
}
|
||||||
int index = currentIndex() + 1;
|
int index = currentIndex() + 1;
|
||||||
mp_stackedWidget->insertWidget(index, view);
|
mp_stackedWidget->insertWidget(index, view);
|
||||||
|
emit libraryPageDisplayed(false);
|
||||||
insertTab(index,QIcon(":/icons/settings.svg"), gt("settings"));
|
insertTab(index,QIcon(":/icons/settings.svg"), gt("settings"));
|
||||||
QToolButton *tb = new QToolButton(this);
|
QToolButton *tb = new QToolButton(this);
|
||||||
tb->setDefaultAction(KiwixApp::instance()->getAction(KiwixApp::CloseTabAction));
|
tb->setDefaultAction(KiwixApp::instance()->getAction(KiwixApp::CloseTabAction));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user