Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/kpropertiesdialog.cpp
Show First 20 Lines • Show All 1879 Lines • ▼ Show 20 Line(s) | 1879 | connect(d->usrEdit, &QLineEdit::textChanged, | |||
---|---|---|---|---|---|
1880 | this, &KPropertiesDialogPlugin::changed); | 1880 | this, &KPropertiesDialogPlugin::changed); | ||
1881 | } else { | 1881 | } else { | ||
1882 | l = new QLabel(d->strOwner, gb); | 1882 | l = new QLabel(d->strOwner, gb); | ||
1883 | gl->addWidget(l, 1, 1); | 1883 | gl->addWidget(l, 1, 1); | ||
1884 | } | 1884 | } | ||
1885 | 1885 | | |||
1886 | /*** Set Group ***/ | 1886 | /*** Set Group ***/ | ||
1887 | 1887 | | |||
1888 | QStringList groupList; | | |||
1889 | KUser user(KUser::UseEffectiveUID); | 1888 | KUser user(KUser::UseEffectiveUID); | ||
1890 | const bool isMyGroup = user.groupNames().contains(d->strGroup); | 1889 | QStringList groupList = user.groupNames(); | ||
1890 | const bool isMyGroup = groupList.contains(d->strGroup); | ||||
1891 | 1891 | | |||
1892 | /* add the group the file currently belongs to .. | 1892 | /* add the group the file currently belongs to .. | ||
1893 | * .. if it is not there already | 1893 | * .. if it is not there already | ||
1894 | */ | 1894 | */ | ||
1895 | if (!isMyGroup) { | 1895 | if (!isMyGroup) { | ||
1896 | groupList += d->strGroup; | 1896 | groupList += d->strGroup; | ||
1897 | } | 1897 | } | ||
1898 | 1898 | | |||
▲ Show 20 Lines • Show All 2031 Lines • Show Last 20 Lines |