mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-09 05:27:57 +00:00
Editor/CMakeLists: Add QT_NO_CAST_FROM/TO_ASCII
Prevents implicit conversions to QString, requiring the conversions to be made explicitly. Prevents potentially incompatible encodings from being intermixed with one another.
This commit is contained in:
@@ -232,7 +232,7 @@ QVariant SFXModel::data(const QModelIndex& index, int role) const {
|
||||
switch (index.column()) {
|
||||
case 0: {
|
||||
g_MainWindow->projectModel()->setIdDatabases(m_node.get());
|
||||
return amuse::SFXId::CurNameDB->resolveNameFromId(entry->first.id).data();
|
||||
return QString::fromUtf8(amuse::SFXId::CurNameDB->resolveNameFromId(entry->first.id).data());
|
||||
}
|
||||
case 1: {
|
||||
ProjectModel::GroupNode* group = g_MainWindow->projectModel()->getGroupNode(m_node.get());
|
||||
|
||||
Reference in New Issue
Block a user