diff --git a/resources/mmv/ui/mmv.ui.reuse.dialog.js b/resources/mmv/ui/mmv.ui.reuse.dialog.js index 3e5b6fb03..820a0d08e 100644 --- a/resources/mmv/ui/mmv.ui.reuse.dialog.js +++ b/resources/mmv/ui/mmv.ui.reuse.dialog.js @@ -285,7 +285,9 @@ * Closes the reuse dialog. */ DP.closeDialog = function () { - mw.mmv.actionLogger.log( 'use-this-file-close' ); + if ( this.isOpen ) { + mw.mmv.actionLogger.log( 'use-this-file-close' ); + } this.stopListeningToOutsideClick(); this.$reuseDialog.hide();