From ed76857cea729a791d4ff6f7c7b0b5c1116bdcc9 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 19 Apr 2017 14:06:48 +0300 Subject: [PATCH] Refactoring. Take the dialog result directly from exec() function. --HG-- branch : release --- src/app/valentina/mainwindowsnogui.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/valentina/mainwindowsnogui.cpp b/src/app/valentina/mainwindowsnogui.cpp index b01b4b1cf..b644fcd07 100644 --- a/src/app/valentina/mainwindowsnogui.cpp +++ b/src/app/valentina/mainwindowsnogui.cpp @@ -1184,6 +1184,5 @@ int MainWindowsNoGUI::ContinueIfLayoutStale() QGridLayout* layout = static_cast(msgBox.layout()); SCASSERT(layout != nullptr) layout->addItem(horizontalSpacer, layout->rowCount(), 0, 1, layout->columnCount()); - msgBox.exec(); - return msgBox.result(); + return msgBox.exec(); }