mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-01-11 20:31:04 +03:00
Segmentation fault fixed
This commit is contained in:
parent
609393169c
commit
6a0faa5a68
@ -1148,8 +1148,8 @@ QWidget* findRootWidget(QWidget* widget){
|
||||
|
||||
void BaseDesignIntf::showEditorDialog(){
|
||||
QWidget *editor = defaultEditor();
|
||||
editor->setStyleSheet(findRootWidget(scene()->views().at(0))->styleSheet());
|
||||
if (editor) {
|
||||
editor->setStyleSheet(findRootWidget(scene()->views().at(0))->styleSheet());
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
editor->setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
Loading…
Reference in New Issue
Block a user