summaryrefslogtreecommitdiffstats
path: root/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r--mainwindow.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index aa20310..dd66ced 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -26,10 +26,6 @@ MainWindow::MainWindow()
heading->addWidget(new QLabel(tr("<b>Videos in Queue</b>")), 1);
m_currentlyInserted = new QPushButton;
connect(m_currentlyInserted, SIGNAL(clicked()), this, SLOT(newVideoFromDVD()));
- if (DVDDrive::instance()->dvdInserted())
- dvdAdded();
- else
- dvdRemoved();
heading->addWidget(m_currentlyInserted);
QVBoxLayout *layout = new QVBoxLayout;
layout->addLayout(heading);
@@ -41,8 +37,12 @@ MainWindow::MainWindow()
if (video->isJobCompleted(Video::DVDImage))
addVideo(video);
else
- settings.remove(QString("Videos/%1").arg(title));
+ settings.remove(title);
}
+ if (DVDDrive::instance()->dvdInserted())
+ dvdAdded();
+ else
+ dvdRemoved();
setLayout(layout);
}
void MainWindow::dvdAdded()
@@ -75,6 +75,6 @@ void MainWindow::runningJob(Job *job)
}
void MainWindow::completedJob(bool success)
{
- //TODO: do something with success
+ //TODO: do something with [lack of] success
delete qobject_cast<Job*>(sender())->widget();
}