Skip to content

Commit

Permalink
restrict cset a279f26c2e65 to Qt6
Browse files Browse the repository at this point in the history
* octave-qobject.cc (start_main_thread): use new signal/slot method
  only for Qt6
  • Loading branch information
ttl-octave committed Aug 13, 2023
1 parent dba39ae commit e7447b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libgui/src/octave-qobject.cc
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,11 @@ void base_qobject::start_main_thread ()
// With the old terminal widget, we defer initializing and executing
// the interpreter until after the main window and QApplication are
// running to prevent race conditions.

#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QTimer::singleShot (0, m_interpreter_qobj, &interpreter_qobject::execute);
#else
QTimer::singleShot (0, m_interpreter_qobj, SLOT (execute ()));
#endif

m_interpreter_qobj->moveToThread (m_main_thread);

Expand Down

0 comments on commit e7447b3

Please sign in to comment.