Przeglądaj źródła

Merge pull request #4243 from Laserlicht/patch-3

extend file open error text
Ivan Savenko 1 rok temu
rodzic
commit
ccef09db91
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      launcher/firstLaunch/firstlaunch_moc.cpp

+ 1 - 1
launcher/firstLaunch/firstlaunch_moc.cpp

@@ -327,7 +327,7 @@ void FirstLaunchView::extractGogData()
 		QFile tmpFile(file);
 		if(!tmpFile.open(QIODevice::ReadOnly))
 		{
-			QMessageBox::critical(this, tr("File cannot opened"), titleErr);
+			QMessageBox::critical(this, tr("File cannot opened"), tmpFile.errorString());
 			return QString{};
 		}
 		QByteArray magicFile = tmpFile.read(magic.length());