Avoid a crash in QMessageBoxDetailsText, just in case
Change-Id: I3322767363c34ad1f131b6ef24e274e5e5cc9f16 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
This commit is contained in:
parent
df121fd7f7
commit
b6fe187f0d
@ -100,9 +100,12 @@ public:
|
||||
void contextMenuEvent(QContextMenuEvent * e) override
|
||||
{
|
||||
QMenu *menu = createStandardContextMenu();
|
||||
if (menu)
|
||||
{
|
||||
menu->setAttribute(Qt::WA_DeleteOnClose);
|
||||
menu->popup(e->globalPos());
|
||||
}
|
||||
}
|
||||
#endif // QT_NO_CONTEXTMENU
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user