change comment's and fix bug (xslt transform)
[mdictionary] / src / plugins / google / GoogleDictDialog.cpp
index bd6bd37..6c7c0c3 100644 (file)
@@ -18,8 +18,8 @@
     Copyright 2010 Comarch S.A.
 
 *******************************************************************************/
-
-/*! \file GoogleDictDialog.cpp
+/*!
+    \file GoogleDictDialog.cpp
     \author Jakub Jaszczynski <j.j.jaszczynski@gmail.com>
 */
 
@@ -31,16 +31,15 @@ GoogleDictDialog::GoogleDictDialog(GooglePlugin *plugin, QObject *parent) :
     this->plugin = plugin;
 }
 
+
 Settings* GoogleDictDialog::addNewDictionary(QWidget *parent) {
     GoogleDialog d(0, GoogleDialog::New, parent);
 
     connect(&d, SIGNAL(notify(Notify::NotifyType,QString)),
             this, SIGNAL(notify(Notify::NotifyType,QString)));
 
-    if(d.exec() == QDialog::Accepted) {
+    if(d.exec() == QDialog::Accepted)
         return d.getSettings();
-    }
-
     return 0;
 }
 
@@ -50,8 +49,7 @@ void GoogleDictDialog::changeSettings(QWidget * parent) {
     connect(&d, SIGNAL(notify(Notify::NotifyType,QString)),
             this, SIGNAL(notify(Notify::NotifyType,QString)));
 
-    if(d.exec() == QDialog::Accepted) {
+    if(d.exec() == QDialog::Accepted)
         plugin->setSettings(d.getSettings());
-    }
 }