diff options
author | deva <deva> | 2005-05-02 20:34:38 +0000 |
---|---|---|
committer | deva <deva> | 2005-05-02 20:34:38 +0000 |
commit | 2e33fab9c99395d30da0859533f2ba27c8406908 (patch) | |
tree | 1d877a69c4eb091037f9697c9b6eae973c9ee932 /src/mainwindow.cc | |
parent | da81b8d2762d8331f2f5efca39d3ea1720173ad3 (diff) |
Some hacked borky ugly scumm code to check for errors! :(
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r-- | src/mainwindow.cc | 17 |
1 files changed, 17 insertions, 0 deletions
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*/ |