From 29ff2e254871ebc359af344d6ee453047e8ad2ec Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 27 Mar 2005 10:18:02 +0000 Subject: Reimplemented the error object as a stack. --- src/mainwindow.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mainwindow.cc') 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; -- cgit v1.2.3