GH-1652 save all instance settings on launch if instance window is already open
This commit is contained in:
@ -215,7 +215,7 @@ void PageContainer::currentChanged(const QModelIndex ¤t)
|
||||
showPage(current.isValid() ? m_proxyModel->mapToSource(current).row() : -1);
|
||||
}
|
||||
|
||||
bool PageContainer::requestClose(QCloseEvent *event)
|
||||
bool PageContainer::prepareToClose()
|
||||
{
|
||||
for (auto page : m_model->pages())
|
||||
{
|
||||
|
@ -41,7 +41,11 @@ public:
|
||||
|
||||
void addButtons(QWidget * buttons);
|
||||
void addButtons(QLayout * buttons);
|
||||
bool requestClose(QCloseEvent *event);
|
||||
/*
|
||||
* Save any unsaved state and prepare to be closed.
|
||||
* @return true if everything can be saved, false if there is something that requires attention
|
||||
*/
|
||||
bool prepareToClose();
|
||||
|
||||
virtual bool selectPage(QString pageId) override;
|
||||
|
||||
|
Reference in New Issue
Block a user