}
if (!m_view.background_image->isHidden()) {
- // Make sure user selected a valid image / video file
+ // Make sure user selected a valid image / video file
if (!QFile::exists(m_view.background_image->url().path())) {
#if KDE_IS_VERSION(4,7,0)
m_menuMessage->setText(i18n("Missing background image"));
// check that we have a "Play all" entry
if (targets.contains(0)) return true;
// ... or that each video file has a button
- for (int i = m_view.target_list->count() - 1; i > 0; i--) {
+ for (int i = m_view.target_list->count() - 1; i > 0; --i) {
// If there is a vob file entry and it has no button assigned, don't allow to go further
if (m_view.target_list->itemIcon(i).isNull() == false && !targets.contains(i)) {
#if KDE_IS_VERSION(4,7,0)
}
-void DvdWizardMenu::loadXml(DVDFORMAT format, QDomElement xml)
+void DvdWizardMenu::loadXml(DVDFORMAT format, const QDomElement &xml)
{
kDebug() << "// LOADING MENU";
if (xml.isNull()) return;
for (int i = 0; i < list.count(); ++i) {
if (list.at(i)->type() == DvdButtonItem) {
delete list.at(i);
- i--;
+ --i;
}
}
}