mirror of
https://github.com/vale981/Taevitas
synced 2025-03-04 17:11:40 -05:00
statfile fix
This commit is contained in:
parent
1820c38e96
commit
37fb1c1b65
2 changed files with 6 additions and 4 deletions
|
@ -200,7 +200,7 @@ void MainWindow::startStopRecording() {
|
|||
camMan.startCapture();
|
||||
} catch ( FlyCapture2::Error e ) {
|
||||
showError( e );
|
||||
ui->saveFrames->setProperty("enabled", true);
|
||||
ui->saveFrames->setProperty("enabled", false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -210,7 +210,7 @@ void MainWindow::startStopRecording() {
|
|||
} catch ( RecorderError ) {
|
||||
showError( "Could not start Recording!" );
|
||||
// TODO: Helper Method
|
||||
ui->saveFrames->setProperty("enabled", true);
|
||||
ui->saveFrames->setProperty("enabled", false);
|
||||
stopCapture();
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -24,7 +24,6 @@ void Recorder::setProjectDir( QString &p_dir ) {
|
|||
baseDir = QDir( p_dir );
|
||||
}
|
||||
|
||||
// TODO: Write to statfile!
|
||||
void Recorder::newRecording( QString r_name ) {
|
||||
stopRecording();
|
||||
|
||||
|
@ -54,8 +53,11 @@ void Recorder::newRecording( QString r_name ) {
|
|||
return;
|
||||
}
|
||||
|
||||
if( !statExists )
|
||||
if( !statExists ) {
|
||||
// Go to begining.
|
||||
stat_file->seek(0);
|
||||
stat_file->write( "0" );
|
||||
}
|
||||
|
||||
frame_n = 0;
|
||||
time_c = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue