]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/controllertab.cpp
QString no longer supports toAscii, use toUtf8 instead
[virtualjaguar] / src / gui / controllertab.cpp
index bd73c2b0f8bc8e3afdc0c9c2df6b572f02e86407..fe4c62b3e964b5384d2670f086ab18500e9f99f1 100644 (file)
@@ -222,7 +222,7 @@ void ControllerTab::AddMapName(void)
        // Add mapping...
        profileNum = freeProfile;
        profile[profileNum].device = deviceList->itemData(deviceList->currentIndex()).toInt();
-       strncpy(profile[profileNum].mapName, text.toAscii().data(), 31);
+       strncpy(profile[profileNum].mapName, text.toUtf8().data(), 31);
        profile[profileNum].mapName[31] = 0;
        profile[profileNum].preferredSlot = CONTROLLER1;