Skip to content

Commit 4cee7bd

Browse files
committed
colordialog bug was not fixed completely
1 parent eb69aef commit 4cee7bd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src_gui/aboutdialog.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,19 @@ void AboutDialog::openLatestVersionLink() {
6060
}
6161

6262
void AboutDialog::showMainColorDialog() {
63-
QColorDialog *colorDialog = new QColorDialog(mainwindow->getUiColorMain());
64-
colorDialog->setWindowFlags(Qt::SubWindow);
63+
QColorDialog *colorDialog = new QColorDialog(mainwindow->getUiColorMain(), this);
6564
connect(colorDialog, SIGNAL(currentColorChanged(QColor)), mainwindow, SLOT(setUiColorMain(QColor)));
6665
colorDialog->show();
6766
}
6867

6968
void AboutDialog::showTextColorDialog() {
70-
QColorDialog *colorDialog = new QColorDialog(mainwindow->getUiColorText());
71-
colorDialog->setWindowFlags(Qt::SubWindow);
69+
QColorDialog *colorDialog = new QColorDialog(mainwindow->getUiColorText(), this);
7270
connect(colorDialog, SIGNAL(currentColorChanged(QColor)), mainwindow, SLOT(setUiColorText(QColor)));
7371
colorDialog->show();
7472
}
7573

7674
void AboutDialog::showGraphicsViewColorDialog() {
77-
QColorDialog *colorDialog = new QColorDialog(mainwindow->getUiColorGraphicsView());
78-
colorDialog->setWindowFlags(Qt::SubWindow);
75+
QColorDialog *colorDialog = new QColorDialog(mainwindow->getUiColorGraphicsView(), this);
7976
connect(colorDialog, SIGNAL(currentColorChanged(QColor)), mainwindow, SLOT(setUiColorGraphicsView(QColor)));
8077
colorDialog->show();
8178
}

0 commit comments

Comments
 (0)