GH-2053 basics of the servers.dat management

This commit is contained in:
Petr Mrázek committed 2018-04-23 02:05:22 +02:00
1 parent 6284f070c1
commit 72ff342d63
11 files changed
+1064 -4

No files matched your search

+12 -3
View File
@@ -218,10 +218,9 @@ void PageContainer::currentChanged(const QModelIndex &current)
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;
}