Changeset View
Changeset View
Standalone View
Standalone View
kcm/output_model.cpp
Show First 20 Lines • Show All 499 Lines • ▼ Show 20 Line(s) | 499 | if (out.ptr->id() != output->id()) { | |||
---|---|---|---|---|---|
500 | if (out.ptr->replicationSource() == output->id()) { | 500 | if (out.ptr->replicationSource() == output->id()) { | ||
501 | // 'output' is already source for replication, can't be replica itself | 501 | // 'output' is already source for replication, can't be replica itself | ||
502 | return { i18n("Replicated by other output") }; | 502 | return { i18n("Replicated by other output") }; | ||
503 | } | 503 | } | ||
504 | if (out.ptr->replicationSource()) { | 504 | if (out.ptr->replicationSource()) { | ||
505 | // This 'out' is a replica. Can't be a replication source. | 505 | // This 'out' is a replica. Can't be a replication source. | ||
506 | continue; | 506 | continue; | ||
507 | } | 507 | } | ||
508 | ret.append(out.ptr->name()); | 508 | ret.append(Utils::outputName(out.ptr)); | ||
509 | } | 509 | } | ||
510 | } | 510 | } | ||
511 | return ret; | 511 | return ret; | ||
512 | } | 512 | } | ||
513 | 513 | | |||
514 | bool OutputModel::setReplicationSourceIndex(int outputIndex, int sourceIndex) | 514 | bool OutputModel::setReplicationSourceIndex(int outputIndex, int sourceIndex) | ||
515 | { | 515 | { | ||
516 | if (outputIndex <= sourceIndex) { | 516 | if (outputIndex <= sourceIndex) { | ||
▲ Show 20 Lines • Show All 385 Lines • Show Last 20 Lines |