--- 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())
{