mirror of
https://github.com/KDE/konsole.git
synced 2026-05-08 06:35:07 -04:00
Disable clear & reset actions when the secondary screen is in use.
BUG:204741 FIXED-IN: 4.8
This commit is contained in:
@@ -99,6 +99,11 @@ ScreenWindow* Emulation::createWindow()
|
||||
return window;
|
||||
}
|
||||
|
||||
void Emulation::checkScreenInUse()
|
||||
{
|
||||
emit primaryScreenInUse( _currentScreen == _screen[0] );
|
||||
}
|
||||
|
||||
Emulation::~Emulation()
|
||||
{
|
||||
QListIterator<ScreenWindow*> windowIter(_windows);
|
||||
@@ -122,6 +127,8 @@ void Emulation::setScreen(int n)
|
||||
// tell all windows onto this emulation to switch to the newly active screen
|
||||
foreach(ScreenWindow* window,_windows)
|
||||
window->setScreen(_currentScreen);
|
||||
|
||||
checkScreenInUse();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user