This repository was archived by the owner on Jun 3, 2024. It is now read-only.
File tree 3 files changed +8
-20
lines changed
Libs/libMacGitverCore/RepoMan 3 files changed +8
-20
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,8 @@ namespace RM
199
199
200
200
if (d->mDisplayAlias != alias) {
201
201
d->mDisplayAlias = alias;
202
- emit aliasChanged (alias);
202
+ // ###REPOMAN Create new Event "RepoAliasChanged"
203
+ // emit aliasChanged(alias);
203
204
}
204
205
}
205
206
@@ -218,7 +219,6 @@ namespace RM
218
219
}
219
220
220
221
Events::self ()->repositoryAboutToClose (this );
221
- emit aboutToClose (this );
222
222
223
223
foreach (Repo* child, submodules ()) {
224
224
child->close ();
@@ -421,13 +421,10 @@ namespace RM
421
421
mUnloadTimer = NULL ;
422
422
}
423
423
424
- Repo* r = pub<Repo>();
425
- emit r->aboutToUnload (r);
426
-
424
+ // ####REPOMAN Do we really need to send out events for Unload/Load? If yes, create
425
+ // real events for that!
427
426
mIsLoaded = false ;
428
427
mRepo = Git::Repository ();
429
-
430
- emit r->unloaded (r);
431
428
}
432
429
433
430
@@ -474,10 +471,7 @@ namespace RM
474
471
475
472
subInfo = repoByPath (path, true );
476
473
if (!subInfo) {
477
-
478
474
subInfo = new Submodule (subRepo, p);
479
- emit p->childAdded (p, subInfo);
480
-
481
475
}
482
476
else {
483
477
oldSubmodules.remove (subInfo);
Original file line number Diff line number Diff line change @@ -98,14 +98,6 @@ namespace RM
98
98
99
99
private slots:
100
100
void unloadTimer ();
101
-
102
- signals:
103
- void aboutToClose (RM::Repo* repo);
104
- void aboutToUnload (RM::Repo* repo);
105
- void unloaded (RM::Repo* repo);
106
- void loaded (RM::Repo* repo);
107
- void childAdded (RM::Repo* parent, RM::Repo* child);
108
- void aliasChanged (const QString& newAlias);
109
101
};
110
102
111
103
}
Original file line number Diff line number Diff line change @@ -197,11 +197,13 @@ void RepoInfoModel::repositoryOpened(RM::Repo *info)
197
197
return ;
198
198
}
199
199
200
+ // ###REPOMAN Instead of this, listen to SubmoduleCreated events
201
+
200
202
// This connection is wrong. There could be any children added below the repository (i.e.
201
203
// HEAD, SubModule, CollectionNode). But the slot will unconditionally reserve a new space
202
204
// for a submodule...
203
- connect (info, &RM::Repo::childAdded,
204
- this , &RepoInfoModel::repositoryChildAdded);
205
+ // connect(info, &RM::Repo::childAdded,
206
+ // this, &RepoInfoModel::repositoryChildAdded);
205
207
206
208
// we add a row just at the end of the root. This is stupid. But that's the way it works when
207
209
// a model actually isn't a model...
You can’t perform that action at this time.
0 commit comments