summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-04-07 18:51:50 +0200
committerRobin Gareus <robin@gareus.org>2019-04-07 18:51:50 +0200
commit1557ea531444b3f7385ed0250ff79b51e8d93a23 (patch)
tree973ed083db2ad21be08b4d0138be7e7862e5783a /gtk2_ardour/ardour_ui.cc
parent58babb1e9b3a29c405a54ae44d14e1c299635537 (diff)
Cleanup "Clean-up", hide dialog before starting cleanup
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r--gtk2_ardour/ardour_ui.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index 5cd23cda09..035b7a145f 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -4198,17 +4198,14 @@ Clean-up will move all unused files to a \"dead\" location."));
default:
return;
}
+ checker.hide();
ARDOUR::CleanupReport rep;
editor->prepare_for_cleanup ();
/* do not allow flush until a session is reloaded */
-
- Glib::RefPtr<Action> act = ActionManager::get_action (X_("Main"), X_("FlushWastebasket"));
- if (act) {
- act->set_sensitive (false);
- }
+ ActionManager::get_action (X_("Main"), X_("FlushWastebasket"))->set_sensitive (false);
if (_session->cleanup_sources (rep)) {
editor->finish_cleanup ();
@@ -4217,7 +4214,6 @@ Clean-up will move all unused files to a \"dead\" location."));
editor->finish_cleanup ();
- checker.hide();
display_cleanup_results (rep, _("Cleaned Files"), false);
}