diff options
Diffstat (limited to 'src/mainwindow.cc')
| -rw-r--r-- | src/mainwindow.cc | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc index 869d5c3..e779c19 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -94,8 +94,10 @@ MainWindow::MainWindow( QWidget* parent, const char* name )    camera->connect(cfg.readString("server_addr")->c_str(),                     cfg.readInt("server_port")); -  if(camera->hasError()) { -    MessageBox(this, "", camera->getErrorString().c_str(), TYPE_OK, ICON_ERROR).exec(); +  cam_error = camera->errorObject(); +  cam_error->pushError("fisk"); +  while(cam_error->hasError()) { +    MessageBox(this, "", cam_error->popErrorString().c_str(), TYPE_OK, ICON_ERROR).exec();    }    recording = false;  | 
