summaryrefslogtreecommitdiff
path: root/src/cprquerydialog.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cprquerydialog.cc')
-rw-r--r--src/cprquerydialog.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cprquerydialog.cc b/src/cprquerydialog.cc
index 552aeb6..19337a4 100644
--- a/src/cprquerydialog.cc
+++ b/src/cprquerydialog.cc
@@ -33,13 +33,15 @@
#include "cprquerydialog.h"
#include "miav_config.h"
-CPRQueryDialog::CPRQueryDialog(QLabel *lcpr,
+CPRQueryDialog::CPRQueryDialog(Info *info,
+ QLabel *lcpr,
QLabel *lname,
QWidget *parent,
const char *name,
QStatusBar *status)
: QDialog(parent, name, TRUE)
{
+ this->info = info;
setCaption(name);
// Load image
@@ -115,7 +117,7 @@ CPRQueryDialog::CPRQueryDialog(QLabel *lcpr,
this->move(175,150);
- listen = new CPRListen(config->readInt("cprlisten_port"));
+ listen = new CPRListen(info, config->readInt("cprlisten_port"));
listen_timer = new QTimer(this);
connect(listen_timer, SIGNAL(timeout()), SLOT(listen_timeout()));
listen->run();
@@ -377,6 +379,7 @@ void CPRQueryDialog::cprSocket_error(int errnum)
if(statusbar) statusbar->message(msg, 5000);
MessageBox(this, "Fejl", msg, TYPE_OK, ICON_ERROR).exec();
+ //info->error(msg.c_str());
accept();
}