diff options
Diffstat (limited to 'src/sql/qsqldatabase.cpp')
-rw-r--r-- | src/sql/qsqldatabase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sql/qsqldatabase.cpp b/src/sql/qsqldatabase.cpp index ebe65d1ba..582219b49 100644 --- a/src/sql/qsqldatabase.cpp +++ b/src/sql/qsqldatabase.cpp @@ -211,12 +211,12 @@ TQSqlDatabaseManager* TQSqlDatabaseManager::instance() { static TQGuardedPtr<TQSqlDatabaseManager> sqlConnection = 0; if ( !sqlConnection ) { - if( qApp == 0 ){ + if( tqApp == 0 ){ qFatal( "TQSqlDatabaseManager: A TQApplication object has to be " "instantiated in order to use the SQL module." ); return 0; } - sqlConnection = new TQSqlDatabaseManager( qApp, "database manager" ); + sqlConnection = new TQSqlDatabaseManager( tqApp, "database manager" ); } return (TQSqlDatabaseManager*)sqlConnection; } |