diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 7d2c62f..0d65ef7 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -303,8 +303,8 @@ void MainWindow::startStopRecording() { } if ( image_buffer->length() > 0 ) { - setStatus( STOPPING ); // We just wait... + setStatus( STOPPING ); return; } diff --git a/src/recorder.cpp b/src/recorder.cpp index 0571014..e233bbf 100644 --- a/src/recorder.cpp +++ b/src/recorder.cpp @@ -42,7 +42,6 @@ void Recorder::newRecording( QString r_name ) { // Clean r_name // TODO: Maybe Visual Feedback for that... r_name.replace( QRegExp( "[^\\_a-zA-Z0-9]" ), "_" ); - qDebug() << r_name; recName = r_name; // Verify Recdir... create directories... @@ -54,6 +53,7 @@ void Recorder::newRecording( QString r_name ) { return; } + qDebug() << "here"; bool statExists = QFile( record_dir.path() + "/" + ".stat" ).exists(); // get Status file @@ -63,6 +63,7 @@ void Recorder::newRecording( QString r_name ) { return; } + qDebug() << "here2"; if ( !statExists ) { statFile->write( "0" ); } @@ -70,6 +71,8 @@ void Recorder::newRecording( QString r_name ) { frame_n = 0; time_c = 0; + qDebug() << "here3"; + // If append, figure out Frame count etc... if ( append ) { if ( !restoreRecording() ) { @@ -86,7 +89,6 @@ void Recorder::newRecording( QString r_name ) { f_err = recorder.AVIOpen( ( record_dir.path() + "/" + recName + "_" + QString::number( frame_n ) + ".avi" ).toStdString().c_str(), &options ); if ( f_err != PGRERROR_OK ) { throw f_err; - qDebug() << ( "That's the problem." ); return; }