@@ -41,6 +41,7 @@ ShellApplication::ShellApplication(int & argc, char ** argv, bool isMirServer)
41 setOrganizationName(QStringLiteral("Canonical"));
41 setOrganizationName(QStringLiteral("Canonical"));
43 connect(this, &QGuiApplication::screenAdded, this, &ShellApplication::onScreenAdded);
43 connect(this, &QGuiApplication::screenAdded, this, &ShellApplication::onScreenAdded);
44+ connect(this, &QGuiApplication::screenRemoved, this, &ShellApplication::onScreenRemoved);
45 setupQmlEngine(isMirServer);
46 setupQmlEngine(isMirServer);
@@ -198,7 +199,7 @@ void ShellApplication::onScreenAdded(QScreen * /*screen*/)
201−void ShellApplication::onScreenAboutToBeRemoved(QScreen *screen)
202+void ShellApplication::onScreenRemoved(QScreen *screen)
203 // TODO: Support an arbitrary number of screens and different policies
204 // TODO: Support an arbitrary number of screens and different policies
204 // (eg cloned desktop, several desktops, etc)
205 // (eg cloned desktop, several desktops, etc)