mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
Merge pull request #6000 from spycrab/qt_fix_older
Qt: Fix building on <= 5.7.x
This commit is contained in:
commit
b073db51e5
@ -864,13 +864,14 @@ void MainWindow::OnImportNANDBackup()
|
||||
dialog->setLabelText(tr("Importing NAND backup"));
|
||||
dialog->setCancelButton(nullptr);
|
||||
|
||||
auto beginning = QDateTime::currentDateTime().toSecsSinceEpoch();
|
||||
auto beginning = QDateTime::currentDateTime().toMSecsSinceEpoch();
|
||||
|
||||
auto result = std::async(std::launch::async, [&] {
|
||||
DiscIO::NANDImporter().ImportNANDBin(file.toStdString(), [&dialog, beginning] {
|
||||
QueueOnObject(dialog, [&dialog, beginning] {
|
||||
dialog->setLabelText(tr("Importing NAND backup\n Time elapsed: %1s")
|
||||
.arg(QDateTime::currentDateTime().toSecsSinceEpoch() - beginning));
|
||||
dialog->setLabelText(
|
||||
tr("Importing NAND backup\n Time elapsed: %1s")
|
||||
.arg((QDateTime::currentDateTime().toMSecsSinceEpoch() - beginning) / 1000));
|
||||
});
|
||||
});
|
||||
QueueOnObject(dialog, [dialog] { dialog->close(); });
|
||||
|
Loading…
x
Reference in New Issue
Block a user