ksnapshot: add delay functionality to 'Region' mode. This resolves issue #71.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit b2f97450ef)
r14.1.x
Michele Calgaro 1 year ago
parent c88bde50d3
commit 666a1d6732
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -282,7 +282,7 @@ void KSnapshot::slotGrab()
oldWinPos = pos(); oldWinPos = pos();
hide(); hide();
if ( mainWidget->delay() && mainWidget->mode() != Region ) if ( mainWidget->delay() )
grabTimer.start( mainWidget->delay() * 1000, true ); grabTimer.start( mainWidget->delay() * 1000, true );
else { else {
if ( mainWidget->mode() == Region ) { if ( mainWidget->mode() == Region ) {

@ -27,8 +27,6 @@ void KSnapshotWidget::slotModeChanged( int mode )
default: default:
break; break;
} }
spinDelay->setEnabled(mode != 2);
} }

Loading…
Cancel
Save