Fixed a bug where the system dialogs wouldn't show up on linux

Thx to @Jan for this contribution and testing
This commit is contained in:
2019-12-18 13:02:25 +01:00
parent 9e4cf9a07f
commit a0f1203fb1
2 changed files with 3 additions and 3 deletions

View File

@@ -164,12 +164,12 @@ void PaintingArea::slotActivateLayer(int a){
}
void PaintingArea::colorPickerSetFirstColor(){
QColor clr = QColorDialog::getColor(colorPicker.getFirstColor(), nullptr, "Main Color");
QColor clr = QColorDialog::getColor(colorPicker.getFirstColor(), nullptr, "Main Color", QColorDialog::DontUseNativeDialog);
this->colorPicker.setFirstColor(clr);
}
void PaintingArea::colorPickerSetSecondColor(){
QColor clr = QColorDialog::getColor(colorPicker.getSecondColor(), nullptr, "Secondary Color");
QColor clr = QColorDialog::getColor(colorPicker.getSecondColor(), nullptr, "Secondary Color", QColorDialog::DontUseNativeDialog);
this->colorPicker.setSecondColor(clr);
}