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"));
// 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()));
// 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
if(proc->signalled()){// looks like kompmgr crashed
{
if(!allowKompmgrRestart)// uh oh, it crashed recently already
deletekompmgr_selection;
{
kompmgr_selection=NULL;
deletekompmgr_selection;
options->useTranslucency=FALSE;
kompmgr_selection=NULL;
KProcessproc;
options->useTranslucency=FALSE;
proc<<"kdialog"<<"--error"
KProcessproc;
<<i18n("The Composite Manager crashed twice within a minute and is therefore disabled for this session.")
proc<<"kdialog"<<"--error"
<<"--title"<<i18n("Composite Manager Failure");
<<i18n("The Composite Manager crashed twice within a minute and is therefore disabled for this session.")
proc.start(KProcess::DontCare);
<<"--title"<<i18n("Composite Manager Failure");
return;
proc.start(KProcess::DontCare);
}
return;
if(!kompmgr)
}
return;
if(!kompmgr)
return;
// this should be useless, i keep it for maybe future need
// this should be useless, i keep it for maybe future need