diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js index c1b4bddc6..1ecdd92cc 100644 --- a/js/ui/workspaceThumbnail.js +++ b/js/ui/workspaceThumbnail.js @@ -884,6 +884,9 @@ var ThumbnailsBox = new Lang.Class({ }, _destroyThumbnails() { + if (this._thumbnails.length == 0) + return; + if (this._switchWorkspaceNotifyId > 0) { global.window_manager.disconnect(this._switchWorkspaceNotifyId); this._switchWorkspaceNotifyId = 0;