From 2dea3e44f2f5258b5c49ccfa8c82076bdb15c964 Mon Sep 17 00:00:00 2001 From: JJ Allaire Date: Thu, 14 Jul 2011 15:39:45 -0400 Subject: [PATCH] add todo comment about save action preservation after suspend --- src/cpp/session/modules/SessionWorkspace.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cpp/session/modules/SessionWorkspace.cpp b/src/cpp/session/modules/SessionWorkspace.cpp index 37f951615e7..c02977d4dfb 100644 --- a/src/cpp/session/modules/SessionWorkspace.cpp +++ b/src/cpp/session/modules/SessionWorkspace.cpp @@ -168,6 +168,8 @@ void enqueAssignedEvent(const r::sexp::Variable& variable) // server mode. this means that if you are ever suspended then you will always // end up with a 'dirty' workspace. not a big deal considering how infrequently // quit occurs in server mode. +// TODO: this now affects switching projects after a suspend. we should try +// to figure out how to preserve dirty state of the workspace accross suspend int s_lastSaveAction = r::session::kSaveActionAsk; void enqueSaveActionChanged()