diff options
author | Timothy Pearson <[email protected]> | 2013-07-21 18:02:15 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-07-21 18:02:15 -0500 |
commit | 08390bda6cc11917a625253a98e48da9b0aac8e6 (patch) | |
tree | 1eb1a63da7a0b43619576ff850c2331552f01461 /ksmserver/shutdowndlg.cpp | |
parent | 1eb5bc816598318458e3a6459663af103a46094b (diff) | |
download | tdebase-08390bda6cc11917a625253a98e48da9b0aac8e6.tar.gz tdebase-08390bda6cc11917a625253a98e48da9b0aac8e6.zip |
Allow the user to manually abort a stalled SaveYourself process
This partially resolves Bug 760
Diffstat (limited to 'ksmserver/shutdowndlg.cpp')
-rw-r--r-- | ksmserver/shutdowndlg.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ksmserver/shutdowndlg.cpp b/ksmserver/shutdowndlg.cpp index b30e6ec2e..6526bc4b8 100644 --- a/ksmserver/shutdowndlg.cpp +++ b/ksmserver/shutdowndlg.cpp @@ -1201,14 +1201,39 @@ TQWidget* KSMShutdownIPDlg::showShutdownIP() return l; } +void KSMShutdownIPDlg::showNotificationActionButtons() +{ + m_button1->show(); + m_button2->show(); + m_buttonframe->show(); + + m_gridlayout->invalidate(); +} + +void KSMShutdownIPDlg::hideNotificationActionButtons() +{ + m_button1->hide(); + m_button2->hide(); + m_buttonframe->hide(); + + m_gridlayout->invalidate(); +} + KSMShutdownIPDlg::KSMShutdownIPDlg(TQWidget* parent) : KSMModalDialog( parent ) { setStatusMessage(i18n("Saving your settings...")); + m_button1->setText(i18n("Skip Notification")); + m_button2->setText(i18n("Abort Logout")); + connect(m_button1, SIGNAL(clicked()), this, SIGNAL(skipNotificationClicked())); + connect(m_button2, SIGNAL(clicked()), this, SIGNAL(abortLogoutClicked())); + show(); setActiveWindow(); + +// KWin::setOnAllDesktops( winId(), true ); } KSMShutdownIPDlg::~KSMShutdownIPDlg() |