From 2e33fab9c99395d30da0859533f2ba27c8406908 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 2 May 2005 20:34:38 +0000 Subject: Some hacked borky ugly scumm code to check for errors! :( --- src/mainwindow.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/mainwindow.cc') diff --git a/src/mainwindow.cc b/src/mainwindow.cc index 829d0fd..80b99b6 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -27,6 +27,10 @@ */ /* * $Log$ + * Revision 1.23 2005/05/02 20:34:38 deva + * + * Some hacked borky ugly scumm code to check for errors! :( + * * Revision 1.22 2005/05/02 19:56:17 deva * * cpr_clicked is now blocked, if a recording session on. A messagebox explains @@ -148,6 +152,10 @@ MainWindow::MainWindow( QWidget* parent, const char* name ) // Open the CPR Dialog cpr_clicked(); + + errtimer = new QTimer(this); + connect(errtimer, SIGNAL(timeout()), SLOT(check_errors())); + errtimer->start(2000); } MainWindow::~MainWindow() @@ -422,4 +430,13 @@ void MainWindow::freeze_clicked() } } +void MainWindow::check_errors() +{ + while(cam_error->hasError()) { + MessageBox(this, TXT_ERROR_TITLE, cam_error->popErrorString().c_str(), + TYPE_OK, ICON_ERROR).exec(); + } +} + + #endif /*USE_GUI*/ -- cgit v1.2.3