Optimise success message in Execute SQL tab

Change the success message for SELECT statement so that the amount of
time taken comes before the SQL statement itself because the time is a
new information whereas the statement is just a repitition for the user.

See issue #381.
This commit is contained in:
Martin Kleusberg
2015-07-09 10:57:04 +02:00
parent 41b337c533
commit 86fb1758de

View File

@@ -809,7 +809,7 @@ void MainWindow::executeQuery()
if(sqlWidget->getModel()->valid())
{
// The query takes the last placeholder as it may itself contain the sequence '%' + number
statusMessage = tr("%1 Rows returned from: %3 (took %2ms)").arg(
statusMessage = tr("%1 rows returned in %2ms from: %3").arg(
sqlWidget->getModel()->totalRowCount()).arg(timer.elapsed()).arg(queryPart.trimmed());
sqlWidget->enableSaveButton(true);
sql3status = SQLITE_OK;