Bug 75172

Summary: changing projects with unsaved work
Product: [Applications] kdevelop Reporter: Jon Smirl <jonsmirl>
Component: generalAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Jon Smirl 2004-02-13 19:44:51 UTC
Version:           CVS (using KDE Devel)
Installed from:    Compiled sources

I used Project/Open Recent Project to switch projects. But my current project had unsaved work. So after picking the new project I got a prompt saying "save ...". I picked cancel.

The bug is that the checkmark for which project is currently open on the Project/Open Recent Project got moved to the new project when my choosing cancel to the save aborted the project switch.

Because that project is now wrongly checked, i can't change to it. Work around is to reopen current project which will fix the check.
Comment 1 Jens Dagerbo 2004-03-24 10:58:23 UTC
CVS commit by dagerbo: 

bugfix

CCMAIL: 75172-done@bugs.kde.org


  M +1 -0      projectmanager.cpp   1.72


--- kdevelop/src/projectmanager.cpp  #1.71:1.72
@@ -249,4 +249,5 @@ bool ProjectManager::loadProject(const K
   if( projectLoaded() && !closeProject() )
   {
+        m_openRecentProjectAction->setCurrentItem( -1 );
         TopLevel::getInstance()->main()->menuBar()->setEnabled( true );
         kapp->restoreOverrideCursor();


Comment 2 Jens Dagerbo 2004-03-29 20:10:55 UTC
CVS commit by dagerbo: 

CCMAIL: 75172@bugs.kde.org


  M +3 -0      projectmanager.cpp   1.64.2.3


--- kdevelop/src/projectmanager.cpp  #1.64.2.2:1.64.2.3
@@ -268,5 +268,8 @@ bool ProjectManager::loadProject(const K
 
   if( projectLoaded() && !closeProject() )
+  {
+    m_openRecentProjectAction->setCurrentItem( -1 );
     return false;
+  }
 
   m_info = new ProjectInfo;