From 960d1fef1fbd3e6e70aa97eb752433aa8a4ba364 Mon Sep 17 00:00:00 2001 From: Christian-Kr Date: Mon, 19 Jun 2023 19:52:25 +0200 Subject: [PATCH] Variable done should be set to true inside loop, otherwise one fail will cause to stay in loop forever. --- rtgui/profilepanel.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rtgui/profilepanel.cc b/rtgui/profilepanel.cc index 8ce9055d0..7d2910cef 100644 --- a/rtgui/profilepanel.cc +++ b/rtgui/profilepanel.cc @@ -339,6 +339,8 @@ void ProfilePanel::save_clicked (GdkEventButton* event) bool done = true; do { + done = true; + if (dialog.run() == Gtk::RESPONSE_OK) { std::string fname = dialog.get_filename();