1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Remember folder for images as well

This commit is contained in:
nordsoft 2023-09-30 03:44:13 +02:00
parent 53dadc6dc3
commit 3018178956

View File

@ -1231,7 +1231,7 @@ void MainWindow::on_actionPaste_triggered()
void MainWindow::on_actionExport_triggered()
{
QString fileName = QFileDialog::getSaveFileName(this, tr("Save to image"), QCoreApplication::applicationDirPath(), "BMP (*.bmp);;JPEG (*.jpeg);;PNG (*.png)");
QString fileName = QFileDialog::getSaveFileName(this, tr("Save to image"), lastSavingDir, "BMP (*.bmp);;JPEG (*.jpeg);;PNG (*.png)");
if(!fileName.isNull())
{
QImage image(ui->mapView->scene()->sceneRect().size().toSize(), QImage::Format_RGB888);