Some fixes
authorunc0rr
Sat, 01 Dec 2012 22:15:25 +0400
changeset 8177 1fc36c2168c4
parent 8176 556e7027e9e1
child 8178 8bd087478b48
Some fixes
QTfrontend/ui/dialog/bandialog.cpp
QTfrontend/ui/page/pageadmin.cpp
--- a/QTfrontend/ui/dialog/bandialog.cpp	Sat Dec 01 21:19:28 2012 +0100
+++ b/QTfrontend/ui/dialog/bandialog.cpp	Sat Dec 01 22:15:25 2012 +0400
@@ -30,7 +30,7 @@
     cbTime->addItem(tr("3 days"), 72 * 60 * 60);
     cbTime->addItem(tr("7 days"), 168 * 60 * 60);
     cbTime->addItem(tr("14 days"), 336 * 60 * 60);
-    cbTime->addItem(tr("permanent"), 3650 * 60 * 60);
+    cbTime->addItem(tr("permanent"), 3650 * 24 * 60 * 60);
     cbTime->setCurrentIndex(0);
 
     formLayout->addRow(tr("IP"), rbIP);
--- a/QTfrontend/ui/page/pageadmin.cpp	Sat Dec 01 21:19:28 2012 +0100
+++ b/QTfrontend/ui/page/pageadmin.cpp	Sat Dec 01 22:15:25 2012 +0400
@@ -156,7 +156,7 @@
 
 void PageAdmin::onAddClicked()
 {
-    BanDialog dialog;
+    BanDialog dialog(this);
 
     if(dialog.exec())
     {