Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
Success Dialog restored
Browse files Browse the repository at this point in the history
  • Loading branch information
kwent committed May 4, 2013
1 parent 6ff1f20 commit dcfc506
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
15 changes: 6 additions & 9 deletions ThumbnailEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ThumbnailEngine::ThumbnailEngine(MainWindow *main_window)
pool = new QThreadPool(this);
pool->setMaxThreadCount(QThread::idealThreadCount());
settings = new QSettings(QSettings::IniFormat,DEFAULT_PATH_INI,APPLICATION_NAME,DEFAULT_FILE_INI,this);
// connect( this, SIGNAL(itemTooShortDuration (ThumbnailItem *)), this , SLOT(successDialogItemRemove(ThumbnailItem *)) );
connect( this, SIGNAL(itemTooShortDuration (ThumbnailItem *)), this , SLOT(successDialogItemRemove(ThumbnailItem *)) );
}

/**
Expand Down Expand Up @@ -129,14 +129,13 @@ void ThumbnailEngine::run(int mode)
*/
void ThumbnailEngine::launchProcess(QLinkedList <ThumbnailItem*> listInputFile)
{
// //Disable Docks - Security
// this->main_window->mpDockInputOutput->setDisabled(true);
// this->main_window->mpDockTimeline->setDisabled(true);
//Disable Docks - Security
this->main_window->mpDockInputOutput->setDisabled(true);
this->main_window->mpDockTimeline->setDisabled(true);

// //Init
//Init
this->listInputFile = QLinkedList <ThumbnailItem*> (listInputFile);
// this->current = 0;
// this->initSuccessDialog(QLinkedList<ThumbnailItem*> (this->listInputFile));
this->initSuccessDialog(QLinkedList<ThumbnailItem*> (this->listInputFile));

main_window->mpDockThreadsPool->threeWidget->clear();

Expand Down Expand Up @@ -302,8 +301,6 @@ void ThumbnailEngine::successDialogItemRemove(ThumbnailItem * item)
*/
void ThumbnailEngine::success(ThumbnailItem* item)
{
qDebug() << "SUCCESS FUNCTION";

if(listInputFile.isEmpty())
{
//1 Re Enable Docks
Expand Down
6 changes: 0 additions & 6 deletions thumbnailrunnable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,6 @@ void ThumbnailRunnable::run()
parameters.gb_E_end = this->item->getEndOmmitSecs();
}

// qDebug() << "input :" << parameters.gb_argv0;
// qDebug() << "outdir :" << parameters.gb_O_outdir;
// qDebug() << "blank_skip :" << parameters.gb_b_blank;
// qDebug() << "title :" << parameters.gb_T_text;
// qDebug() << "output :" << parameters.gb_O_outdir;

process_file();

emit finished(this->item);
Expand Down

0 comments on commit dcfc506

Please sign in to comment.