Saying
"If this was only a temporary problem, you can resume using the 'Empty' shortcut.\n" if no shortcut is found makes no sense, reworked to avoid it Tried my best to do correct indentation but make failed svn path=/trunk/KDE/kdebase/workspace/; revision=878365
This commit is contained in:
parent
102be68572
commit
5f7174a27e
1 changed files with 8 additions and 4 deletions
|
@ -484,10 +484,14 @@ void Workspace::checkCompositePaintTime( int msec )
|
||||||
if( tooslow )
|
if( tooslow )
|
||||||
{
|
{
|
||||||
QTimer::singleShot( 0, this, SLOT( suspendCompositing()));
|
QTimer::singleShot( 0, this, SLOT( suspendCompositing()));
|
||||||
QString shortcut = i18n( "Empty" );
|
QString shortcut, message;
|
||||||
if( KAction* action = qobject_cast<KAction*>( keys->action("Suspend Compositing")))
|
if( KAction* action = qobject_cast<KAction*>( keys->action("Suspend Compositing")))
|
||||||
shortcut = action->globalShortcut().primary().toString(QKeySequence::NativeText);
|
shortcut = action->globalShortcut().primary().toString(QKeySequence::NativeText);
|
||||||
QString message = i18n( "Compositing was too slow and has been suspended.\n"
|
if (shortcut.isEmpty())
|
||||||
|
message = i18n( "Compositing was too slow and has been suspended.\n"
|
||||||
|
"You can disable functionality checks in advanced compositing settings." );
|
||||||
|
else
|
||||||
|
message = i18n( "Compositing was too slow and has been suspended.\n"
|
||||||
"If this was only a temporary problem, you can resume using the '%1' shortcut.\n"
|
"If this was only a temporary problem, you can resume using the '%1' shortcut.\n"
|
||||||
"You can also disable functionality checks in advanced compositing settings.", shortcut );
|
"You can also disable functionality checks in advanced compositing settings.", shortcut );
|
||||||
Notify::raise( Notify::CompositingSlow, message );
|
Notify::raise( Notify::CompositingSlow, message );
|
||||||
|
|
Loading…
Reference in a new issue