diff libgui/src/main-window.cc @ 24628:55da6c4f1382

update chdir handling in GUI * main-window.cc (main_window::new_figure_callback): Don't call octave_qt_link::update_directory here. This function executes in the interpreter thread. * octave-qt-link.cc (octave_qt_link::m_current_directory, octave_qt_link::m_new_dir): Delete variables and all uses. (octave_qt_link::update_directory): Delete function and all uses. (octave_qt_link::do_change_directory): Don't store directory name here. Simply emit change_directory_signal with the name of the new directory.
author John W. Eaton <jwe@octave.org>
date Sun, 21 Jan 2018 17:33:20 -0500
parents be37df6e1fb4
children 57f36275e605
line wrap: on
line diff
--- a/libgui/src/main-window.cc	Sat Jan 20 16:00:01 2018 -0500
+++ b/libgui/src/main-window.cc	Sun Jan 21 17:33:20 2018 -0500
@@ -2622,8 +2622,9 @@
 void
 main_window::change_directory_callback (const std::string& directory)
 {
+  // INTERPRETER THREAD
+
   Fcd (ovl (directory));
-  m_octave_qt_link->update_directory ();
 }
 
 void