Commit a8f1221b authored by Leslie Zhai's avatar Leslie Zhai

Fix DataMultisessionImportDialog No okClicked or cancelClicked signal issue.

K3b was developed by Sebastian Trueg started in 1998!
and K3b::DataMultisessionImportDialog was migrated by Michał Małek to KF5 in 2014!

There are okClicked and cancelClicked signals for KDialog.
Unfornately KDialog has been deprecated and moved to kde4support.
KF5 Prefer QDialog, but there is no such signal, and clang analyzer was not taught
to find such migration issue :)

Please (code review) pay more attention to K3b::DataMultisessionImportDialog::slotOk
and K3b::DataDoc::importSession, I prefer to use the backends provided by libburnia
developing and maintaining by Thomas if others failed to importSession!

CCBUG: 379268
parent ff083515
......@@ -276,9 +276,9 @@ K3b::DataMultisessionImportDialog::DataMultisessionImportDialog( QWidget* parent
this, SLOT(updateMedia()) );
connect( d->sessionView, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)),
this, SLOT(slotSelectionChanged()) );
connect( d->sessionView, SIGNAL(itemActivated(QTreeWidgetItem*,int)), SIGNAL(okClicked()) );
connect(d->sessionView, SIGNAL(itemActivated(QTreeWidgetItem*,int)), SLOT(slotOk()) );
connect(d->okButton, SIGNAL(clicked()), this, SLOT(slotOk()));
connect(buttonBox->button(QDialogButtonBox::Cancel), SIGNAL(clicked()), this, SLOT(slotCancel()));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment