Variable done should be set to true inside loop, otherwise one fail will cause to stay in loop forever.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user