Fix a bug that makes an object re-initial.
[mverbiste] / mainwindow.cpp
index 2ae5a60..9e227d4 100644 (file)
@@ -49,7 +49,7 @@ void MainWindow::setupcodedUI()
     setWindowIcon(*icon);
 
     /* About Dialog */
-    aboutDialog = new AboutDialog(ICONFILE, "MVerbiste");
+    aboutDialog = new AboutDialog(ICONFILE, QString("MVerbiste v%1").arg(VERSTR));
     aboutDialog->setIntro(trUtf8("A French conjugation utility for Maemo and MeeGo"));
     aboutDialog->addAuthor(QString::fromUtf8("Nguyễn Hồng Quân <ng.hong.quan@gmail.com>\nPierre Sarrazin <sarrazip@sarrazip.com>"));
 
@@ -194,7 +194,7 @@ void MainWindow::startLookup()
 #ifndef QT_NO_DEBUG
         qDebug() << "   START getConjugation " << timer.elapsed();
 #endif
-        getConjugation(freVerbDic, d.infinitive, d.templateName, conjug,
+        getConjugation(*freVerbDic, d.infinitive, d.templateName, conjug,
                #ifndef QT_NO_DEBUG
                        timer,
                #endif