[kmobiletools] KDE/kdepim/kmobiletools/kmobiletools/mainpart
Frank Osterfeld
frank.osterfeld at kdemail.net
Thu Jun 21 00:34:57 CEST 2007
SVN commit 678229 by osterfeld:
give yes/no dialog descriptive buttons
M +2 -1 kmobiletools_mainpart.cpp
--- trunk/KDE/kdepim/kmobiletools/kmobiletools/mainpart/kmobiletools_mainpart.cpp #678228:678229
@@ -31,6 +31,7 @@
#include <ktar.h>
// #include <kparts/statusbarextension.h>
//#include <dcopclient.h>
+#include <KStandardGuiItem>
#include <ksystemtrayicon.h>
#include <kactioncollection.h>
#include <kmessagebox.h>
@@ -169,7 +170,7 @@
testfile.remove();
} else
{
- int ret=KMessageBox::questionYesNo( m_widget, i18n("<qt>You have no write access to lockfiles directory <b>/var/lock/</b>. Please correct this using the permission fixer wizard, or by hand with \"chmod -R a+rwx /var/lock\"<br>Do you want to run the Permission Wizard now?</qt>") );
+ int ret=KMessageBox::questionYesNo( m_widget, i18n("<qt>You have no write access to lockfiles directory <b>/var/lock/</b>. Please correct this using the permission fixer wizard, or by hand with \"chmod -R a+rwx /var/lock\"<br>Do you want to run the Permission Wizard now?</qt>"), i18n("Locking Failed"), KGuiItem(i18n("Run Wizard")), KStandardGuiItem::cancel() );
if(ret==KMessageBox::Yes) KRun::runCommand("kmtsetup", m_widget->topLevelWidget());
}
}
More information about the kmobiletools
mailing list