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

@@ -460,7 +460,7 @@ bool IntelliPhotoGui::saveFile(const QByteArray &fileFormat){
initialPath, initialPath,
tr("%1 Files (*.%2);;All Files (*)") tr("%1 Files (*.%2);;All Files (*)")
.arg(QString::fromLatin1(fileFormat.toUpper())) .arg(QString::fromLatin1(fileFormat.toUpper()))
.arg(QString::fromLatin1(fileFormat))); .arg(QString::fromLatin1(fileFormat)), nullptr, QFileDialog::DontUseNativeDialog);
// If no file do nothing // If no file do nothing
if (fileName.isEmpty()) { if (fileName.isEmpty()) {

View File

@@ -164,12 +164,12 @@ void PaintingArea::slotActivateLayer(int a){
} }
void PaintingArea::colorPickerSetFirstColor(){ 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); this->colorPicker.setFirstColor(clr);
} }
void PaintingArea::colorPickerSetSecondColor(){ 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); this->colorPicker.setSecondColor(clr);
} }