mirror of
https://github.com/fltk/fltk.git
synced 2026-09-22 06:43:52 +08:00
Fluid: fix reference to delete string
Build and Test / build-linux (push) Canceled after 0s
Build and Test / build-wayland (push) Canceled after 0s
Build and Test / build-wayland-arm64 (push) Canceled after 0s
Build and Test / build-macos (push) Canceled after 0s
Build and Test / build-windows (push) Canceled after 0s
Build and Test / build-windows-arm (push) Canceled after 0s
Build and Test / build-linux (push) Canceled after 0s
Build and Test / build-wayland (push) Canceled after 0s
Build and Test / build-wayland-arm64 (push) Canceled after 0s
Build and Test / build-macos (push) Canceled after 0s
Build and Test / build-windows (push) Canceled after 0s
Build and Test / build-windows-arm (push) Canceled after 0s
This commit is contained in:
+4
-3
@@ -593,8 +593,9 @@ void Application::save_project_file(void *v) {
|
||||
flush_text_widgets();
|
||||
|
||||
const char *c = proj.proj_filename;
|
||||
std::string new_filename;
|
||||
if (v || !c || !*c) {
|
||||
std::string filename = fluid::io::filechooser(
|
||||
new_filename = fluid::io::filechooser(
|
||||
fluid::io::FileChooserType::SAVE_FILE,
|
||||
fluid::io::FileChooserPath::ABSOLUTE_PATH,
|
||||
"Save Project File As",
|
||||
@@ -603,8 +604,8 @@ void Application::save_project_file(void *v) {
|
||||
history.latest_project_path(),
|
||||
"Fluid Project Files\t*.fl"
|
||||
);
|
||||
if (filename.empty()) return;
|
||||
c = filename.c_str();
|
||||
if (new_filename.empty()) return;
|
||||
c = new_filename.c_str();
|
||||
|
||||
#if 0 // filechooser is already doing this check, so we don't need to do it again here
|
||||
if (!fl_access(c, 0)) {
|
||||
|
||||
Reference in New Issue
Block a user