mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-20 18:32:17 +00:00
Reload subprojects list only if subprojects added/removed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@19509 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
db2e4ddedf
commit
68a13d3d66
2 changed files with 23 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-06-13 Serg Stoyan <stoyan255@ukr.net>
|
||||||
|
|
||||||
|
* Library/PCProjectBrowser.m:
|
||||||
|
(reloadLastColumn): Reload subprojects list only if subprojects
|
||||||
|
added/removed.
|
||||||
|
|
||||||
2004-06-12 Serg Stoyan <stoyan255@ukr.net>
|
2004-06-12 Serg Stoyan <stoyan255@ukr.net>
|
||||||
|
|
||||||
* Library/PCProjectManager.m:
|
* Library/PCProjectManager.m:
|
||||||
|
|
|
@ -254,15 +254,25 @@ NSString *PCBrowserDidSetPathNotification = @"PCBrowserDidSetPathNotification";
|
||||||
|
|
||||||
- (void)reloadLastColumn
|
- (void)reloadLastColumn
|
||||||
{
|
{
|
||||||
int column = [browser lastColumn];
|
int column = [browser lastColumn];
|
||||||
NSString *category = [self nameOfSelectedCategory];
|
NSString *category = [self nameOfSelectedCategory];
|
||||||
int selectedColumn = [browser selectedColumn];
|
int selectedColumn = [browser selectedColumn];
|
||||||
NSMatrix *colMatrix = [browser matrixInColumn:selectedColumn];
|
NSMatrix *colMatrix = [browser matrixInColumn:selectedColumn];
|
||||||
int rowCount = 0, colCount = 0, spCount = 0;
|
int rowCount = 0, colCount = 0, spCount = 0;
|
||||||
PCProject *activeProject = [[project projectManager] activeProject];
|
PCProject *activeProject = [[project projectManager] activeProject];
|
||||||
|
NSString *selCellTitle = [[browser selectedCell] stringValue];
|
||||||
|
|
||||||
[colMatrix getNumberOfRows:&rowCount columns:&colCount];
|
if ([category isEqualToString:@"Subprojects"]
|
||||||
spCount = [[[activeProject projectDict] objectForKey:PCSubprojects] count];
|
&& ![selCellTitle isEqualToString:@"Subprojects"])
|
||||||
|
{ // /Subprojects/Name selected
|
||||||
|
if ([selCellTitle isEqualToString:[activeProject projectName]])
|
||||||
|
{
|
||||||
|
activeProject = [activeProject superProject];
|
||||||
|
}
|
||||||
|
[colMatrix getNumberOfRows:&rowCount columns:&colCount];
|
||||||
|
spCount = [[[activeProject projectDict]
|
||||||
|
objectForKey:PCSubprojects] count];
|
||||||
|
}
|
||||||
|
|
||||||
if ([category isEqualToString:@"Subprojects"] && rowCount != spCount
|
if ([category isEqualToString:@"Subprojects"] && rowCount != spCount
|
||||||
&& ![[[browser selectedCell] stringValue] isEqualToString:@"Subprojects"])
|
&& ![[[browser selectedCell] stringValue] isEqualToString:@"Subprojects"])
|
||||||
|
|
Loading…
Reference in a new issue