GH-2053 basics of the servers.dat management
This commit is contained in:
@ -218,10 +218,9 @@ void PageContainer::currentChanged(const QModelIndex ¤t)
|
||||
|
||||
bool PageContainer::prepareToClose()
|
||||
{
|
||||
for (auto page : m_model->pages())
|
||||
if(!saveAll())
|
||||
{
|
||||
if (!page->apply())
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
if (m_currentPage)
|
||||
{
|
||||
@ -229,3 +228,13 @@ bool PageContainer::prepareToClose()
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool PageContainer::saveAll()
|
||||
{
|
||||
for (auto page : m_model->pages())
|
||||
{
|
||||
if (!page->apply())
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user