Fixed Qt-less build

This commit is contained in:
Matthias Koefferlein
2022-05-09 00:29:48 +02:00
parent 7fe0e95eee
commit f827e693ef
2 changed files with 5 additions and 2 deletions
@@ -307,7 +307,7 @@ EditorServiceBase::show_error (tl::Exception &ex)
{
tl::error << ex.msg ();
#if defined(HAVE_QT)
QMessageBox::critical (0, tr ("Error"), tl::to_qstring (ex.msg ()));
QMessageBox::critical (widget (), tr ("Error"), tl::to_qstring (ex.msg ()));
#endif
}