-rw-r--r-- | noncore/apps/opie-gutenbrowser/openetext.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/noncore/apps/opie-gutenbrowser/openetext.cpp b/noncore/apps/opie-gutenbrowser/openetext.cpp index a5d855d..75edacd 100644 --- a/noncore/apps/opie-gutenbrowser/openetext.cpp +++ b/noncore/apps/opie-gutenbrowser/openetext.cpp @@ -370,7 +370,8 @@ void OpenEtext::remove() "?\nThis will not delete the file.</P>"; - switch( QMessageBox::information( this, tr("Remove Etext"), + unsigned short clickVal = + QMessageBox::information( this, tr("Remove Etext"), tr(msg), - tr("&Yes"), tr("&Cancel"), 0 ) ) - { - case 0: // Yes clicked, + tr("&Yes"), tr("&Cancel"), 0 ); + if ( clickVal == 0 ) { + // The yes button was clicked removeSelection(); @@ -378,5 +379,2 @@ void OpenEtext::remove() getTitles(); - break; - case 1: - default: } |