summaryrefslogtreecommitdiffstats
path: root/application/pagedialog
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-05-25 08:21:35 +0200
committerPetr Mrázek <peterix@gmail.com>2015-05-25 08:21:35 +0200
commit8fb5d4add3cbbd5a4c1d4cd32ddab67fda458afa (patch)
tree6bc748a8977b3411dc805344c6f5417779b174b0 /application/pagedialog
parent185ff238c202f3db20f013cd18cfbd99c9878e8e (diff)
downloadMultiMC-8fb5d4add3cbbd5a4c1d4cd32ddab67fda458afa.tar
MultiMC-8fb5d4add3cbbd5a4c1d4cd32ddab67fda458afa.tar.gz
MultiMC-8fb5d4add3cbbd5a4c1d4cd32ddab67fda458afa.tar.lz
MultiMC-8fb5d4add3cbbd5a4c1d4cd32ddab67fda458afa.tar.xz
MultiMC-8fb5d4add3cbbd5a4c1d4cd32ddab67fda458afa.zip
GH-1003 add some save locking for dialog pages that deal with settings
Diffstat (limited to 'application/pagedialog')
-rw-r--r--application/pagedialog/PageDialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/application/pagedialog/PageDialog.cpp b/application/pagedialog/PageDialog.cpp
index a930789e..c2b480cf 100644
--- a/application/pagedialog/PageDialog.cpp
+++ b/application/pagedialog/PageDialog.cpp
@@ -54,9 +54,12 @@ PageDialog::PageDialog(BasePageProviderPtr pageProvider, QString defaultId, QWid
void PageDialog::closeEvent(QCloseEvent *event)
{
+ qDebug() << "Paged dialog close requested";
if (m_container->requestClose(event))
{
+ qDebug() << "Paged dialog close approved";
MMC->settings()->set("PagedGeometry", saveGeometry().toBase64());
+ qDebug() << "Paged dialog geometry saved";
QDialog::closeEvent(event);
}
}