mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-13 11:50:31 +02:00
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:
@@ -460,7 +460,7 @@ bool IntelliPhotoGui::saveFile(const QByteArray &fileFormat){
|
||||
initialPath,
|
||||
tr("%1 Files (*.%2);;All Files (*)")
|
||||
.arg(QString::fromLatin1(fileFormat.toUpper()))
|
||||
.arg(QString::fromLatin1(fileFormat)));
|
||||
.arg(QString::fromLatin1(fileFormat)), nullptr, QFileDialog::DontUseNativeDialog);
|
||||
|
||||
// If no file do nothing
|
||||
if (fileName.isEmpty()) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user