mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 19:31:02 +01:00
Connect signal to signal
This commit is contained in:
parent
5045f9b870
commit
978a91442c
@ -192,7 +192,7 @@ void Organise::ProcessSomeFiles() {
|
||||
}
|
||||
else {
|
||||
if(job.mark_as_listened_) {
|
||||
emit FileCopied_(job.metadata_.id());
|
||||
emit FileCopied(job.metadata_.id());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -54,7 +54,7 @@ class Organise : public QObject {
|
||||
|
||||
signals:
|
||||
void Finished(const QStringList& files_with_errors);
|
||||
void FileCopied_(int database_id);
|
||||
void FileCopied(int database_id);
|
||||
|
||||
protected:
|
||||
void timerEvent(QTimerEvent* e);
|
||||
|
@ -353,17 +353,13 @@ void OrganiseDialog::accept() {
|
||||
new_songs_info_, ui_->eject_after->isChecked());
|
||||
connect(organise, SIGNAL(Finished(QStringList)),
|
||||
SLOT(OrganiseFinished(QStringList)));
|
||||
connect(organise, SIGNAL(FileCopied_(int)),
|
||||
this, SLOT(FileCopied_(int)));
|
||||
connect(organise, SIGNAL(FileCopied(int)),
|
||||
this, SIGNAL(FileCopied(int)));
|
||||
organise->Start();
|
||||
|
||||
QDialog::accept();
|
||||
}
|
||||
|
||||
void OrganiseDialog::FileCopied_(int database_id) {
|
||||
emit FileCopied(database_id);
|
||||
}
|
||||
|
||||
void OrganiseDialog::OrganiseFinished(const QStringList& files_with_errors) {
|
||||
if (files_with_errors.isEmpty()) return;
|
||||
|
||||
|
@ -65,7 +65,6 @@ class OrganiseDialog : public QDialog {
|
||||
|
||||
public slots:
|
||||
void accept();
|
||||
void FileCopied_(int);
|
||||
|
||||
protected:
|
||||
void showEvent(QShowEvent*);
|
||||
|
Loading…
Reference in New Issue
Block a user