From be4533717afe45196eb172330046aa0499d02c7c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 20 Mar 2019 22:31:21 +0100 Subject: FileManager: Add ability to create new directories. --- LibGUI/GDialog.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'LibGUI/GDialog.cpp') diff --git a/LibGUI/GDialog.cpp b/LibGUI/GDialog.cpp index d6a925bfb2..3832d2b32c 100644 --- a/LibGUI/GDialog.cpp +++ b/LibGUI/GDialog.cpp @@ -25,14 +25,15 @@ int GDialog::exec() show(); auto result = m_event_loop->exec(); m_event_loop = nullptr; - dbgprintf("event loop returned with result %d\n", result); + dbgprintf("%s: event loop returned with result %d\n", class_name(), result); return result; } void GDialog::done(int result) { - ASSERT(m_event_loop); + if (!m_event_loop) + return; m_result = result; - dbgprintf("quit event loop with result %d\n", result); + dbgprintf("%s: quit event loop with result %d\n", class_name(), result); m_event_loop->quit(result); } -- cgit v1.2.3