[gnome-documents] mainWindow: fix a warning
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] mainWindow: fix a warning
- Date: Wed, 8 Jan 2014 18:35:23 +0000 (UTC)
commit 94904769deed3b3786c679c1de8cad0a9de27cde
Author: Cosimo Cecchi <cosimo endlessm com>
Date: Wed Jan 8 10:33:35 2014 -0800
mainWindow: fix a warning
We forgot to clear this._configureId when the timeout is fired, which
would lead to us trying to remove a source that doesn't exist anymore.
src/mainWindow.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 224df7a..74c83bc 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -119,6 +119,7 @@ const MainWindow = new Lang.Class({
this._configureId = Mainloop.timeout_add(_CONFIGURE_ID_TIMEOUT, Lang.bind(this,
function() {
+ this._configureId = 0;
this._saveWindowGeometry();
return false;
}));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]