Disable irritating and obsolete warning dialog when kompmgr is enabled
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1245889 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
KMessageBox::information(this, i18n("<qt>Translucency support is new and may cause problems<br> including crashes (sometimes the translucency engine, seldom even X).</qt>"), i18n("Warning"));
// if (alphaActivated)
// KMessageBox::information(this, i18n("<qt>Translucency support is new and may cause problems<br> including crashes (sometimes the translucency engine, seldom even X).</qt>"), i18n("Warning"));
// this is for inernal purpose (crashhandling) only, usually you want to use workspace->stopKompmgr(); TQTimer::singleShot(200, workspace, TQT_SLOT(startKompmgr()));
{
if(!allowKompmgrRestart)// uh-ohh
{
deletekompmgr_selection;
kompmgr_selection=NULL;
options->useTranslucency=FALSE;
KProcessproc;
proc<<"kdialog"<<"--error"
<<i18n("The Composite Manager crashed twice within a minute and is therefore disabled for this session.")
<<"--title"<<i18n("Composite Manager Failure");
proc.start(KProcess::DontCare);
return;
}
if(!kompmgr)
return;
if(proc->signalled()){// looks like kompmgr crashed
if(!allowKompmgrRestart)// uh oh, it crashed recently already
{
deletekompmgr_selection;
kompmgr_selection=NULL;
options->useTranslucency=FALSE;
KProcessproc;
proc<<"kdialog"<<"--error"
<<i18n("The Composite Manager crashed twice within a minute and is therefore disabled for this session.")
<<"--title"<<i18n("Composite Manager Failure");
proc.start(KProcess::DontCare);
return;
}
if(!kompmgr)
return;
// this should be useless, i keep it for maybe future need