mirror of https://github.com/KLayout/klayout.git
Avoid macro IDE events during update of the recent properties list (that is a problem when script errors are present)
This commit is contained in:
parent
2db378b872
commit
b128ffc70b
|
|
@ -27,6 +27,7 @@
|
||||||
#include "layDispatcher.h"
|
#include "layDispatcher.h"
|
||||||
#include "layLayoutViewBase.h"
|
#include "layLayoutViewBase.h"
|
||||||
#include "layLayerTreeModel.h"
|
#include "layLayerTreeModel.h"
|
||||||
|
#include "layBusy.h"
|
||||||
#include "dbLibraryManager.h"
|
#include "dbLibraryManager.h"
|
||||||
#include "dbLibrary.h"
|
#include "dbLibrary.h"
|
||||||
#include "tlLog.h"
|
#include "tlLog.h"
|
||||||
|
|
@ -275,7 +276,12 @@ RecentConfigurationPage::render_to (QTreeWidgetItem *item, int column, const std
|
||||||
if (pcid.first) {
|
if (pcid.first) {
|
||||||
const db::PCellDeclaration *pc_decl = lib->layout ().pcell_declaration (pcid.second);
|
const db::PCellDeclaration *pc_decl = lib->layout ().pcell_declaration (pcid.second);
|
||||||
if (pc_decl) {
|
if (pc_decl) {
|
||||||
item->setText (column, tl::to_qstring (pc_decl->get_display_name (pc_decl->map_parameters (pcp))));
|
lay::BusySection busy; // do not trigger macro IDE breakpoints and exception handling
|
||||||
|
try {
|
||||||
|
item->setText (column, tl::to_qstring (pc_decl->get_display_name (pc_decl->map_parameters (pcp))));
|
||||||
|
} catch (tl::Exception &ex) {
|
||||||
|
item->setText (column, tl::to_qstring (std::string ("ERROR: ") + tl::to_quoted_string (ex.msg ())));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue