Committing patch from issue 1240: "Partial profile handling"
This commit is contained in:
@@ -144,9 +144,12 @@ void History::historySelectionChanged () {
|
||||
if (row)
|
||||
bTreeView->get_selection()->unselect_all ();
|
||||
if (row && tpc) {
|
||||
ProcParams params = row[historyColumns.params];
|
||||
ProcParams pparams = row[historyColumns.params];
|
||||
ParamsEdited pe;
|
||||
pe.set(true);
|
||||
PartialProfile pp(&pparams, &pe);
|
||||
ParamsEdited paramsEdited = row[historyColumns.paramsEdited];
|
||||
tpc->profileChange (¶ms, EvHistoryBrowsed, row[historyColumns.text], ¶msEdited);
|
||||
tpc->profileChange (&pp, EvHistoryBrowsed, row[historyColumns.text], ¶msEdited);
|
||||
}
|
||||
if (blistener && blistenerLock==false) {
|
||||
Gtk::TreeModel::Path path = historyModel->get_path (iter);
|
||||
@@ -167,9 +170,12 @@ void History::bookmarkSelectionChanged () {
|
||||
if (row)
|
||||
hTreeView->get_selection()->unselect_all ();
|
||||
if (row && tpc) {
|
||||
ProcParams params = row[bookmarkColumns.params];
|
||||
ProcParams pparams = row[bookmarkColumns.params];
|
||||
ParamsEdited pe;
|
||||
pe.set(true);
|
||||
PartialProfile pp(&pparams, &pe);
|
||||
ParamsEdited paramsEdited = row[bookmarkColumns.paramsEdited];
|
||||
tpc->profileChange (¶ms, EvBookmarkSelected, row[bookmarkColumns.text], ¶msEdited);
|
||||
tpc->profileChange (&pp, EvBookmarkSelected, row[bookmarkColumns.text], ¶msEdited);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -201,7 +207,7 @@ void History::procParamsChanged (ProcParams* params, ProcEvent ev, Glib::ustring
|
||||
if (size>0)
|
||||
row = historyModel->children()[size-1];
|
||||
// if there is no last item or its chev!=ev, create a new one
|
||||
if (size==0 || !row || row[historyColumns.chev]!=ev) {
|
||||
if (size==0 || !row || row[historyColumns.chev]!=ev || ev==EvProfileChanged) {
|
||||
Gtk::TreeModel::Row newrow = *(historyModel->append());
|
||||
newrow[historyColumns.realText] = eventDescrArray[ev];
|
||||
newrow[historyColumns.text] = text;
|
||||
|
Reference in New Issue
Block a user