diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2009-10-09 16:00:02 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2009-10-09 16:00:02 -0400 |
commit | fc59e2655a90cbf6f98f19a5f1922b07fbbc773e (patch) | |
tree | ba1ef06b46445edbec36ee6139a3701d9ff79368 | |
parent | Style (diff) | |
download | AnyRip-master.tar.xz AnyRip-master.zip |
-rw-r--r-- | newdvdgui.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/newdvdgui.cpp b/newdvdgui.cpp index 031764e..fc07b60 100644 --- a/newdvdgui.cpp +++ b/newdvdgui.cpp @@ -43,7 +43,12 @@ NewDVDGui::NewDVDGui() : } void NewDVDGui::dvdAdded() { - QString name = DVDDrive::instance()->dvdName(); + QString name = DVDDrive::instance()->dvdName().replace(QLatin1Char('_'), QLatin1Char(' ')).toLower(); + int i = 0; + do { + name[i] = name[i].toUpper(); + i = name.indexOf(QLatin1Char(' '), i) + 1; + } while (i); m_status->setText(m_loadingTitles.arg(name)); m_dvdName->setText(name); m_dvdName->setVisible(false); |