Thanks to @mgrojo for spotting this before any user or any translator
could see it.
This commit is contained in:
Martin Kleusberg
2018-08-28 23:07:00 +02:00
parent 4a3273b359
commit effb4e0ac6

View File

@@ -1612,7 +1612,7 @@ void MainWindow::importDatabaseFromSQL()
if(!db.executeMultiSQL(f.readAll(), newDbFile.size() == 0))
QMessageBox::warning(this, QApplication::applicationName(), tr("Error importing data: %1").arg(db.lastError()));
else if(db.getPragma("foreign_keys") == "1" && !db.querySingeValueFromDb(QString("PRAGMA foreign_key_check")).isNull())
QMessageBox::warning(this, QApplication::applicationName(), tr("Import complated. Some foreign key constraints are violated. Please fix them before saving."));
QMessageBox::warning(this, QApplication::applicationName(), tr("Import completed. Some foreign key constraints are violated. Please fix them before saving."));
else
QMessageBox::information(this, QApplication::applicationName(), tr("Import completed."));
f.close();