fixed bugs in loading dynamic profiles

This commit is contained in:
Alberto Griggio
2017-03-03 10:00:19 +01:00
parent 6ae57cd556
commit eeb2da2613
4 changed files with 20 additions and 7 deletions

View File

@@ -19,6 +19,7 @@
#include "dynamicprofilepanel.h"
#include "multilangmgr.h"
#include "profilestore.h"
#include <sstream>
#include <iomanip>
@@ -377,7 +378,12 @@ void DynamicProfilePanel::render_profilepath(
auto row = *iter;
Gtk::CellRendererText *ct = static_cast<Gtk::CellRendererText *>(cell);
auto value = row[columns_.profilepath];
ct->property_text() = value;
auto pse = profileStore.findEntryFromFullPath(value);
if (pse != nullptr) {
ct->property_text() = pse->label;
} else {
ct->property_text() = value;
}
}