mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Merge pull request #4243 from Laserlicht/patch-3
extend file open error text
This commit is contained in:
@@ -327,7 +327,7 @@ void FirstLaunchView::extractGogData()
|
|||||||
QFile tmpFile(file);
|
QFile tmpFile(file);
|
||||||
if(!tmpFile.open(QIODevice::ReadOnly))
|
if(!tmpFile.open(QIODevice::ReadOnly))
|
||||||
{
|
{
|
||||||
QMessageBox::critical(this, tr("File cannot opened"), titleErr);
|
QMessageBox::critical(this, tr("File cannot opened"), tmpFile.errorString());
|
||||||
return QString{};
|
return QString{};
|
||||||
}
|
}
|
||||||
QByteArray magicFile = tmpFile.read(magic.length());
|
QByteArray magicFile = tmpFile.read(magic.length());
|
||||||
|
|||||||
Reference in New Issue
Block a user