partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 8e0628ecc8e2014e7d2ad12e041f68375ff93d67
parent 477646ea380f25bdf92d6b33031f90ed9bf05a83
Author: Felicitus <felicitus@felicitus.org>
Date:   Wed,  7 Sep 2011 05:20:03 +0200

Don't try to destroy the tip if none was created

Diffstat:
Mfrontend/js/Dialogs/FileUploadDialog.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/frontend/js/Dialogs/FileUploadDialog.js b/frontend/js/Dialogs/FileUploadDialog.js @@ -134,6 +134,8 @@ Ext.define('PartKeepr.FileUploadDialog', { this.tip.show(); }, onBeforeDestroy: function () { - this.tip.destroy(); + if (this.tip) { + this.tip.destroy(); + } } });