Skip to content
This repository has been archived by the owner on Oct 30, 2021. It is now read-only.

Commit

Permalink
Fix regression of autosaving first screenshot, when filename includes…
Browse files Browse the repository at this point in the history
… date-time
  • Loading branch information
DOOMer committed May 7, 2012
1 parent 18f6b9c commit 1dc6105
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/core/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Core::Core()

pixelMap = new QPixmap;
selector = 0;
firstScreen = true;

sleep(250);
// delay on 250 msec
Expand Down Expand Up @@ -115,6 +116,13 @@ void Core::coreQuit()
// get screenshot
void Core::screenShot(bool first)
{
firstScreen = first;
// Update date last crenshot, if it is a first screen
if (firstScreen == true)
{
conf->updateLastSaveDate();
}

// grb pixmap of desktop
switch(conf->getTypeScreen())
{
Expand Down
1 change: 1 addition & 0 deletions src/core/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public Q_SLOTS:
RegionSelect *selector; // region grabber widget

bool hided;
bool firstScreen;

private Q_SLOTS:
void regionGrabbed(bool grabbed);
Expand Down

0 comments on commit 1dc6105

Please sign in to comment.