Skip to content
Snippets Groups Projects
Commit b5bdba9a authored by Felix de las Pozas's avatar Felix de las Pozas
Browse files

Fix save screenshot icon missing in windows build.

parent cd1db310
No related branches found
Tags 1.8.12
No related merge requests found
......@@ -1037,7 +1037,11 @@ namespace visimpl
QPixmap pixmap(_openGLWidget->size());
_openGLWidget->render(&pixmap);
const QIcon icon(":/icons/screenshot.svg");
SaveScreenshotDialog dialog(pixmap.width(), pixmap.height(), pixmap.toImage(), this);
dialog.setWindowIcon(icon);
if (dialog.exec() == QDialog::Rejected)
return;
......@@ -1071,7 +1075,7 @@ namespace visimpl
auto message = tr("Couln't save screenshot file '%1'. Problem writing format '%2'.").arg(fileInfo.fileName()).arg(extension);
QMessageBox msgBox(this);
msgBox.setWindowIcon(QIcon(":/icons/screenshot.svg"));
msgBox.setWindowIcon(icon);
msgBox.setWindowTitle(dialogTitle);
msgBox.setText(problemText);
msgBox.setDetailedText(message);
......@@ -1083,7 +1087,7 @@ namespace visimpl
auto message = tr("Couln't save screenshot file '%1'. Unrecognized extension '%1'.").arg(fileName.split('/').last()).arg(extension);
QMessageBox msgBox(this);
msgBox.setWindowIcon(QIcon(":/icons/screenshot.png"));
msgBox.setWindowIcon(icon);
msgBox.setWindowTitle(dialogTitle);
msgBox.setText(problemText);
msgBox.setDetailedText(message);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment