From c3dd5bfd446b893a8b39ddec425a6cf8deff2261 Mon Sep 17 00:00:00 2001 From: zautrix Date: Wed, 09 Feb 2005 13:22:06 +0000 Subject: fixes --- (limited to 'libkdepim') diff --git a/libkdepim/kdateedit.cpp b/libkdepim/kdateedit.cpp index c4c0081..2c78ea3 100644 --- a/libkdepim/kdateedit.cpp +++ b/libkdepim/kdateedit.cpp @@ -426,10 +426,11 @@ void KDateEdit::lineEnterPressed() if ( !mDateEdit->text().isEmpty() ) { mTextChanged = false; QString text = i18n( "You entered an invalid date!\n Will use current date instead." ); - if ( KMessageBox::warningContinueCancel( 0, text ) == KMessageBox::Continue ) { - setDate( QDate::currentDate() ); - emit dateChanged( QDate::currentDate() ); - } + if ( isVisible() ) + if ( KMessageBox::warningContinueCancel( 0, text ) == KMessageBox::Continue ) { + setDate( QDate::currentDate() ); + emit dateChanged( QDate::currentDate() ); + } } } } -- cgit v0.9.0.2