From b2f97450eff7140a425ff37284db60f8917f4999 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 1 Nov 2023 10:55:38 +0900 Subject: [PATCH] ksnapshot: add delay functionality to 'Region' mode. This resolves issue #71. Signed-off-by: Michele Calgaro --- ksnapshot/ksnapshot.cpp | 2 +- ksnapshot/ksnapshotwidget.ui.h | 2 -- 2 files changed, 1 insertion(+), 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); }