summaryrefslogtreecommitdiff
path: root/src/mainwindow.cc
diff options
context:
space:
mode:
authordeva <deva>2005-03-27 10:18:02 +0000
committerdeva <deva>2005-03-27 10:18:02 +0000
commit29ff2e254871ebc359af344d6ee453047e8ad2ec (patch)
treee2c24aa35e16fb612f3715d8a272b3cd4520537f /src/mainwindow.cc
parent63ac729b32331438a607ec5b8be046143c7592e6 (diff)
Reimplemented the error object as a stack.
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r--src/mainwindow.cc6
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;