From f681783c513b54002aa4dfec2566f26bfc38689b Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Wed, 8 Dec 2010 00:22:51 +0000 Subject: Some fixes to the previous commit. Apparently I missed to filter a case. --- muse2/muse/app.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'muse2/muse/app.cpp') diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp index ba261460..3c73efc1 100644 --- a/muse2/muse/app.cpp +++ b/muse2/muse/app.cpp @@ -3354,7 +3354,8 @@ void MusE::openRecentMenu() for (int i = 0; i < PROJECT_LIST_LEN; ++i) { if (projectList[i] == 0) break; - const char* path = projectList[i]->toLatin1().constData(); + QByteArray ba = projectList[i]->toLatin1(); + const char* path = ba.constData(); const char* p = strrchr(path, '/'); if (p == 0) p = path; -- cgit v1.2.3