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

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/72/head
Michele Calgaro 1 year ago
parent 6f41322a4f
commit b2f97450ef
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