summaryrefslogtreecommitdiff
path: root/LibGUI/GDialog.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-20 22:31:21 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-20 22:40:06 +0100
commitbe4533717afe45196eb172330046aa0499d02c7c (patch)
tree464af42b33f1995aa7effc2f9432c7343e5febc4 /LibGUI/GDialog.cpp
parent1030e6b84887544063429f141e65c30668165e4f (diff)
downloadserenity-be4533717afe45196eb172330046aa0499d02c7c.zip
FileManager: Add ability to create new directories.
Diffstat (limited to 'LibGUI/GDialog.cpp')
-rw-r--r--LibGUI/GDialog.cpp7
1 files changed, 4 insertions, 3 deletions
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);
}