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:
parent
53dadc6dc3
commit
3018178956
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user