mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-03-20 01:03:53 +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(){
|
void BaseDesignIntf::showEditorDialog(){
|
||||||
QWidget *editor = defaultEditor();
|
QWidget *editor = defaultEditor();
|
||||||
editor->setStyleSheet(findRootWidget(scene()->views().at(0))->styleSheet());
|
|
||||||
if (editor) {
|
if (editor) {
|
||||||
|
editor->setStyleSheet(findRootWidget(scene()->views().at(0))->styleSheet());
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
editor->setAttribute(Qt::WA_DeleteOnClose);
|
editor->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
Loading…
Reference in New Issue
Block a user