summaryrefslogtreecommitdiffstats
path: root/ksnapshot
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-01 10:55:38 +0900
committerMichele Calgaro <[email protected]>2023-11-01 18:14:11 +0900
commit666a1d6732c8ebfdb0b69827358b7cae690d4deb (patch)
tree7b31242910baed0bc9ec5f251615b4e1f00c0eaa /ksnapshot
parentc88bde50d37eb098529e73249baf44f49b01af0d (diff)
downloadtdegraphics-666a1d6732c8ebfdb0b69827358b7cae690d4deb.tar.gz
tdegraphics-666a1d6732c8ebfdb0b69827358b7cae690d4deb.zip
ksnapshot: add delay functionality to 'Region' mode. This resolves issue #71.
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit b2f97450eff7140a425ff37284db60f8917f4999)
Diffstat (limited to 'ksnapshot')
-rw-r--r--ksnapshot/ksnapshot.cpp2
-rw-r--r--ksnapshot/ksnapshotwidget.ui.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/ksnapshot/ksnapshot.cpp b/ksnapshot/ksnapshot.cpp
index 00a1b1ac..f9fd5f12 100644
--- a/ksnapshot/ksnapshot.cpp
+++ b/ksnapshot/ksnapshot.cpp
@@ -282,7 +282,7 @@ void KSnapshot::slotGrab()
oldWinPos = pos();
hide();
- if ( mainWidget->delay() && mainWidget->mode() != Region )
+ if ( mainWidget->delay() )
grabTimer.start( mainWidget->delay() * 1000, true );
else {
if ( mainWidget->mode() == Region ) {
diff --git a/ksnapshot/ksnapshotwidget.ui.h b/ksnapshot/ksnapshotwidget.ui.h
index 7fb52539..c84f65ca 100644
--- a/ksnapshot/ksnapshotwidget.ui.h
+++ b/ksnapshot/ksnapshotwidget.ui.h
@@ -27,8 +27,6 @@ void KSnapshotWidget::slotModeChanged( int mode )
default:
break;
}
-
- spinDelay->setEnabled(mode != 2);
}