Skip to content

Commit

Permalink
Fixed a couple of broken object connections
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Apr 6, 2024
1 parent 97d2762 commit 5fba513
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/filesharinghttpproxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ void FileSharingHttpProxy::transfer()
} else {
response->write(data);
}
qDebug("FSP transferred %lld bytes of %lld bytes", data.size(), toTransfer);
qDebug("FSP transferred %lld bytes of %lld bytes", qint64(data.size()), toTransfer);
} else {
qDebug("FSP we have to wait for readyRead or disconnected");
}
Expand Down
2 changes: 1 addition & 1 deletion src/historydlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ void HistoryDlg::listAccounts()
// select active account
ui_.accountsBox->setCurrentIndex(ui_.accountsBox->findData(getCurrentAccountId()));
// connect signal after the list is populated to prevent execution in the middle of the loop
connect(ui_.accountsBox, SIGNAL(currentIndexChanged(const QString)), SLOT(changeAccount(const QString)));
connect(ui_.accountsBox, &QComboBox::currentTextChanged, this, &HistoryDlg::changeAccount);
}

void HistoryDlg::openSelectedContact()
Expand Down
2 changes: 1 addition & 1 deletion src/privacy/privacyruledlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ PrivacyRuleDlg::PrivacyRuleDlg()
ui_.cb_type->addItem(tr("Subscription"), PrivacyListItem::SubscriptionType);
ui_.cb_type->addItem(tr("*"), PrivacyListItem::FallthroughType);

connect(ui_.cb_type, SIGNAL(currentIndexChanged(const QString &)), SLOT(type_selected(const QString &)));
connect(ui_.cb_type, &QComboBox::currentTextChanged, this, &PrivacyRuleDlg::type_selected);
connect(ui_.pb_cancel, SIGNAL(clicked()), SLOT(reject()));
connect(ui_.pb_ok, SIGNAL(clicked()), SLOT(accept()));
}
Expand Down

0 comments on commit 5fba513

Please sign in to comment.