diff options
| author | 2015-04-19 22:30:21 -0400 | |
|---|---|---|
| committer | 2015-04-19 22:30:21 -0400 | |
| commit | a308f430f694423064ebc86fd0506c8c6fdb3d93 (patch) | |
| tree | ceacd24fecf92f40980f8d8f3fd169e317c886af /SQLiteStudio3/guiSQLiteStudio/windows/tablewindow.cpp | |
| parent | a5b034d4a9c44f9bc1e83b01de82530f8fc63013 (diff) | |
Imported Upstream version 3.0.5upstream/3.0.5
Diffstat (limited to 'SQLiteStudio3/guiSQLiteStudio/windows/tablewindow.cpp')
| -rw-r--r-- | SQLiteStudio3/guiSQLiteStudio/windows/tablewindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/SQLiteStudio3/guiSQLiteStudio/windows/tablewindow.cpp b/SQLiteStudio3/guiSQLiteStudio/windows/tablewindow.cpp index 77a4adc..3a315db 100644 --- a/SQLiteStudio3/guiSQLiteStudio/windows/tablewindow.cpp +++ b/SQLiteStudio3/guiSQLiteStudio/windows/tablewindow.cpp @@ -621,20 +621,20 @@ bool TableWindow::restoreSession(const QVariant& sessionValue) QHash<QString, QVariant> value = sessionValue.toHash(); if (value.size() == 0) { - notifyWarn("Could not restore window, because no database or table was stored in session for this window."); + notifyWarn(tr("Could not restore window %1, because no database or table was stored in session for this window.").arg(value["title"].toString())); return false; } if (!value.contains("db") || !value.contains("table")) { - notifyWarn("Could not restore window, because no database or table was stored in session for this window."); + notifyWarn(tr("Could not restore window '%1', because no database or table was stored in session for this window.").arg(value["title"].toString())); return false; } db = DBLIST->getByName(value["db"].toString()); if (!db || !db->isValid() || (!db->isOpen() && !db->open())) { - notifyWarn(tr("Could not restore window, because database %1 could not be resolved.").arg(value["db"].toString())); + notifyWarn(tr("Could not restore window '%1', because database %2 could not be resolved.").arg(value["title"].toString(), value["db"].toString())); return false; } @@ -643,7 +643,7 @@ bool TableWindow::restoreSession(const QVariant& sessionValue) SchemaResolver resolver(db); if (!resolver.getTables(database).contains(table, Qt::CaseInsensitive)) { - notifyWarn(tr("Could not restore window, because the table %1 doesn't exist in the database %2.").arg(table).arg(db->getName())); + notifyWarn(tr("Could not restore window '%1'', because the table %2 doesn't exist in the database %3.").arg(value["title"].toString(), table, db->getName())); return false; } |
