diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-20 22:31:21 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-20 22:40:06 +0100 |
commit | be4533717afe45196eb172330046aa0499d02c7c (patch) | |
tree | 464af42b33f1995aa7effc2f9432c7343e5febc4 /LibGUI/GDialog.cpp | |
parent | 1030e6b84887544063429f141e65c30668165e4f (diff) | |
download | serenity-be4533717afe45196eb172330046aa0499d02c7c.zip |
FileManager: Add ability to create new directories.
Diffstat (limited to 'LibGUI/GDialog.cpp')
-rw-r--r-- | LibGUI/GDialog.cpp | 7 |
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); } |