|
|
|
|
@ -195,7 +195,7 @@ void Window::create_menu() {
|
|
|
|
|
else |
|
|
|
|
Singleton::terminal()->print("Error: "+path.string()+" already exists.\n"); |
|
|
|
|
} else { |
|
|
|
|
Singleton::terminal()->print("Cancel \n"); |
|
|
|
|
Singleton::terminal()->print("Dialog was closed \n"); |
|
|
|
|
} |
|
|
|
|
Singleton::directories()->select(path); |
|
|
|
|
}); |
|
|
|
|
@ -237,7 +237,7 @@ void Window::create_menu() {
|
|
|
|
|
if (boost::filesystem::exists(path)) |
|
|
|
|
Singleton::directories()->open(path); |
|
|
|
|
else |
|
|
|
|
Singleton::terminal()->print("Cancel \n"); |
|
|
|
|
Singleton::terminal()->print("Dialog was closed \n"); |
|
|
|
|
}); |
|
|
|
|
menu.action_group->add(Gtk::Action::create("FileSaveAs", "Save As"), Gtk::AccelKey(menu.key_map["save_as"]), [this]() { |
|
|
|
|
auto path = Dialog::save_file(); |
|
|
|
|
|