app-display: Only reset filters when they have been initialized

The view might get mapped before the filters have been added, so
trying to reset to the "All" filter will throw an exception. Fix
by only do the reset if the filters have been initialized.
This commit is contained in:
Florian Müllner 2011-02-10 12:56:19 +01:00
parent d90c98130e
commit 8f7d5cde90

View File

@ -115,7 +115,7 @@ ViewByCategories.prototype = {
// Always select the "All" filter when switching to the app view
this.actor.connect('notify::mapped', Lang.bind(this,
function() {
if (this.actor.mapped)
if (this.actor.mapped && this._allFilter)
this._selectCategory(-1);
}));