fixed some loading glitches
This commit is contained in:
parent
19977bdb32
commit
b458850877
2 changed files with 4 additions and 2 deletions
|
@ -208,6 +208,8 @@ void ProfileInterface::sortingProfileInterface()
|
|||
|
||||
ui->vlSavegame->setEnabled(true);
|
||||
ui->vlSnapmatic->setEnabled(true);
|
||||
|
||||
qApp->processEvents();
|
||||
}
|
||||
|
||||
void ProfileInterface::profileLoaded_p()
|
||||
|
|
|
@ -57,6 +57,7 @@ void ProfileLoader::run()
|
|||
emit loadingProgress(curFile, maximumV);
|
||||
foreach(const QString &SavegameFile, SavegameFiles)
|
||||
{
|
||||
emit loadingProgress(curFile, maximumV);
|
||||
QString sgdPath = profileFolder + "/" + SavegameFile;
|
||||
SavegameData *savegame = new SavegameData(sgdPath);
|
||||
if (savegame->readingSavegame())
|
||||
|
@ -64,10 +65,10 @@ void ProfileLoader::run()
|
|||
emit savegameLoaded(savegame, sgdPath);
|
||||
}
|
||||
curFile++;
|
||||
emit loadingProgress(curFile, maximumV);
|
||||
}
|
||||
foreach(const QString &SnapmaticPic, SnapmaticPics)
|
||||
{
|
||||
emit loadingProgress(curFile, maximumV);
|
||||
QString picturePath = profileFolder + "/" + SnapmaticPic;
|
||||
SnapmaticPicture *picture = new SnapmaticPicture(picturePath);
|
||||
if (picture->readingPicture())
|
||||
|
@ -80,7 +81,6 @@ void ProfileLoader::run()
|
|||
}
|
||||
}
|
||||
curFile++;
|
||||
emit loadingProgress(curFile, maximumV);
|
||||
}
|
||||
|
||||
// adding found crews
|
||||
|
|
Loading…
Reference in a new issue