mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
refs #881, possible fix for duplicates in combobox
This commit is contained in:
committed by
Mathew Sutcliffe
parent
8741b66578
commit
14125bf030
@@ -94,11 +94,12 @@ namespace BlackGui
|
||||
CHotkeyDialog::~CHotkeyDialog()
|
||||
{ }
|
||||
|
||||
void CHotkeyDialog::setRegisteredApplications(const BlackMisc::CIdentifierList &applications)
|
||||
void CHotkeyDialog::setRegisteredApplications(const CIdentifierList &applications)
|
||||
{
|
||||
for (const auto &app : applications)
|
||||
const QStringList machines = applications.getMachineNames();
|
||||
for (const QString &machine : machines)
|
||||
{
|
||||
ui->cb_Identifier->addItem(app.getMachineName(), QVariant::fromValue(app));
|
||||
ui->cb_Identifier->addItem(machine);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user