Diff of /src/hugin1/hugin/PreferencesDialog.cpp [7a5b62] .. [d8e66f]  Maximize  Restore

Switch to side-by-side view

--- a/src/hugin1/hugin/PreferencesDialog.cpp
+++ b/src/hugin1/hugin/PreferencesDialog.cpp
@@ -919,6 +919,14 @@
     {
         wxConfig::Get()->Write(wxT("/actualPath"), dlg.GetDirectory());  // remember for later
         wxString fn = dlg.GetPath();
+#ifndef __WXMSW__
+        //append extension if not given
+        //not necessary on Windows, the wxFileDialog appends it automatic
+        if(fn.Right(8)!=wxT(".setting"))
+        {
+            fn.Append(wxT(".setting"));
+        };
+#endif
         cpdetector_config_edit.WriteToFile(fn);
     };
 };

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks