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

View File

@ -1331,7 +1331,10 @@ MainService::cm_convert_to_pcell ()
}
if (any_non_converted) {
QMessageBox::warning (view ()->widget (), tr ("Warning"), tr ("Some of the shapes could not be converted to the desired PCell"));
tl::warn << tl::to_string (tr ("Some of the shapes could not be converted to the desired PCell"));
#if defined(HAVE_QT)
QMessageBox::warning (view (), tr ("Warning"), tr ("Some of the shapes could not be converted to the desired PCell"));
#endif
}
manager ()->commit ();

View File

@ -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
}