Commits

Andrew Fenn committed 5e6f4fe

Cleanup

  • Participants
  • Parent commits 3277360
  • Branches general_ui

Comments (0)

Files changed (1)

File qtOgitor/src/qtogitorsystem.cpp

                 continue;
 
             QIcon witem(pixmap);
-            QVariant data(QString(name.c_str()));
-            mCalcBlendmapDlg->tex1->addItem(witem, QString(name.c_str()), data);
-            mCalcBlendmapDlg->tex2->addItem(witem, QString(name.c_str()), data);
-            mCalcBlendmapDlg->tex3->addItem(witem, QString(name.c_str()), data);
-            mCalcBlendmapDlg->tex4->addItem(witem, QString(name.c_str()), data);
-            mCalcBlendmapDlg->tex5->addItem(witem, QString(name.c_str()), data);
+            QString texname(name.c_str());
+            QVariant data(texname);
+            mCalcBlendmapDlg->tex1->addItem(witem, QString(texname), data);
+            mCalcBlendmapDlg->tex2->addItem(witem, QString(texname), data);
+            mCalcBlendmapDlg->tex3->addItem(witem, QString(texname), data);
+            mCalcBlendmapDlg->tex4->addItem(witem, QString(texname), data);
+            mCalcBlendmapDlg->tex5->addItem(witem, QString(texname), data);
         }
     }