mirror of https://github.com/KLayout/klayout.git
Fixed Qt-less build
This commit is contained in:
parent
7fe0e95eee
commit
f827e693ef
|
|
@ -1331,7 +1331,10 @@ MainService::cm_convert_to_pcell ()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (any_non_converted) {
|
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 ();
|
manager ()->commit ();
|
||||||
|
|
|
||||||
|
|
@ -307,7 +307,7 @@ EditorServiceBase::show_error (tl::Exception &ex)
|
||||||
{
|
{
|
||||||
tl::error << ex.msg ();
|
tl::error << ex.msg ();
|
||||||
#if defined(HAVE_QT)
|
#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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue