Skip to content

Commit

Permalink
Fix QTimers triggering all the time instead of single shots
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jul 22, 2023
1 parent bf13ae8 commit 2ac482f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/projectinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ ProjectInfo::ProjectInfo( QObject *parent )
: QObject( parent )
{
mSaveExtentTimer.setSingleShot( true );
mSaveRotationTimer.setSingleShot( true );
mSaveTemporalStateTimer.setSingleShot( true );
connect( &mSaveExtentTimer, &QTimer::timeout, this, &ProjectInfo::saveExtent );
connect( &mSaveRotationTimer, &QTimer::timeout, this, &ProjectInfo::saveRotation );
connect( &mSaveTemporalStateTimer, &QTimer::timeout, this, &ProjectInfo::saveTemporalState );
Expand Down

0 comments on commit 2ac482f

Please sign in to comment.