Disable clear & reset actions when the secondary screen is in use.

BUG:204741
FIXED-IN: 4.8
This commit is contained in:
Jekyll Wu
2011-08-27 00:10:58 +08:00
parent 802540d508
commit 0ddf722e08
7 changed files with 55 additions and 0 deletions

View File

@@ -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();
}
}