summaryrefslogtreecommitdiffstats
path: root/mainwindow.cpp
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2009-09-26 18:20:21 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2009-09-26 18:20:21 -0400
commit52c533d9f1e90322bbc57740ddfe7ebccf598fd3 (patch)
treea9b17aca105ffbf367dc10e7b5ac2e1afb75028d /mainwindow.cpp
parentEncoding skeleton and cleanups. (diff)
downloadAnyRip-52c533d9f1e90322bbc57740ddfe7ebccf598fd3.tar.xz
AnyRip-52c533d9f1e90322bbc57740ddfe7ebccf598fd3.zip
More HandBrake progress
Diffstat (limited to '')
-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();
}