mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-16 05:10:32 +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,
|
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()) {
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user