Bug 75172 - changing projects with unsaved work
Summary: changing projects with unsaved work
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-13 19:44 UTC by Jon Smirl
Modified: 2004-03-29 20:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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;