mirror of
https://github.com/fralx/LimeReport.git
synced 2025-09-30 19:19:56 +03:00
Segmentation fault fixed
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user