]> vaikene.ee Git - evaf/blobdiff - src/apps/PswGen/GUI/gui.cpp
Minor change to make the file more similar to other PswGen application modules.
[evaf] / src / apps / PswGen / GUI / gui.cpp
index 965d70ea7b4052fdf2f6b59f8faa269dc9634413..f29c4aee6b7620e88ad003474ff4cdbe4ca5bbd6 100644 (file)
 #include <QtGui>
 
 
-using namespace eVaf;
-
 VER_EXPORT_VERSION_INFO()
-Q_EXPORT_PLUGIN2(VER_MODULE_NAME_STR, PswGen::GUI::Module)
+Q_EXPORT_PLUGIN2(VER_MODULE_NAME_STR, eVaf::PswGen::GUI::Module)
 
 
 //-------------------------------------------------------------------
 
+using namespace eVaf;
 using namespace eVaf::PswGen::GUI;
 
 int const Module::DefaultPasswordLength = 16;
@@ -187,7 +186,7 @@ void Module::generateClicked()
     if (mStorage) {
         QExplicitlySharedDataPointer<PswGen::Storage::Data> data = mStorage->query(wName->text());
         if (!data)
-            data = new Storage::Data(wLength->value());
+            data = new Storage::Data(wName->text(), wLength->value());
         else
             data->setLength(wLength->value());
         mStorage->save(wName->text(), data);