Rework killer confirmation dialog to make it more obvious that continuing can quite certainly be destructive to the user's data.

GUI

svn path=/trunk/KDE/kdebase/workspace/; revision=961044
This commit is contained in:
Marcel Partap 2009-04-29 13:42:53 +00:00
parent e9e08c35cb
commit 4072d108b1

View file

@ -64,12 +64,13 @@ int main( int argc, char* argv[] )
return 1;
}
QString question = i18n(
"<p>Window with title \"<b>%2</b>\" is not responding. "
"This window belongs to application <b>%1</b> (PID=%3, hostname=%4).</p>"
"<p>Do you wish to terminate this application? (All unsaved data in this application will be lost.)</p>" ,
"<p>The window \"<b>%2</b>\" is not responding. "
"It belongs to the application <b>%1</b> (Process ID = %3, hostname = %4).</p>"
"<p>Do you wish to terminate the application process <em>including <b>all</b> of its child windows</em>?<br />"
"<b>Any unsaved data will be lost!</b></p>" ,
appname, caption, QString::number( pid ), QString( hostname ) );
app.updateUserTimestamp( timestamp );
if( KMessageBox::warningYesNoWId( id, question, QString(), KGuiItem(i18n("Terminate")), KGuiItem(i18n("Keep Running")) ) == KMessageBox::Yes )
if( KMessageBox::warningContinueCancelWId( id, question, QString(), KGuiItem(i18n("&Terminate application %1", appname), "edit-bomb") ) == KMessageBox::Continue )
{
if( hostname != "localhost" )
{