Summary: | 'remove from repository' actually deletes local files | ||
---|---|---|---|
Product: | [Applications] cervisia | Reporter: | Ben Burton <bab> |
Component: | general | Assignee: | Bernd Gehrmann <bernd> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | ana |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | added warning message to dialog. |
Description
Ben Burton
2003-02-10 05:30:09 UTC
Created attachment 1038 [details]
added warning message to dialog.
Hi!
What do you think about the added warning message (see attachment)? Do you
think
that this would be enough
I don't like the idea of backup files, because I think the normal case is to
remove
obsolete files from the repository.
Christian
Subject: Re: 'remove from repository' actually deletes local files > What do you think about the added warning message (see attachment)? Do you > think > that this would be enough Yep, works for me. > I don't like the idea of backup files, because I think the normal case is to > remove > obsolete files from the repository. Agreed - I think the warning should be fine. Thanks - Ben. :) Subject: KDE_3_1_BRANCH: kdesdk/cervisia CVS commit by cloose: backport fix for BR #54382: Display warning message in remove dialog to make clear that the action will also remove the local copy of the selected files. BTW, is it okay to add new i18n strings to the branch??? CCMAIL: 54382-done@bugs.kde.org M +6 -0 ChangeLog 1.22.2.7 M +21 -0 commitdlg.cpp 1.6.2.2 --- kdesdk/cervisia/ChangeLog #1.22.2.6:1.22.2.7 @@ -1,2 +1,8 @@ +2003-02-28 Christian Loose <christian.loose@hamburg.de> + + * Fix BR #54382: Display warning message in remove dialog + to make clear that the action will also remove the local + copy of the selected files. + 2003-02-24 Christian Loose <christian.loose@hamburg.de> --- kdesdk/cervisia/commitdlg.cpp #1.6.2.1:1.6.2.2 @@ -20,4 +20,5 @@ #include <kapplication.h> #include <kbuttonbox.h> +#include <kiconloader.h> #include <klocale.h> #include <kconfig.h> @@ -76,4 +77,24 @@ CommitDialog::CommitDialog(ActionType ac listbox->setEnabled(false); + if (action == Remove) + { + QBoxLayout *warningLayout = new QHBoxLayout(this); + + QLabel *warningIcon = new QLabel(this); + KIconLoader *loader = kapp->iconLoader(); + warningIcon->setPixmap(loader->loadIcon("messagebox_warning", KIcon::NoGroup, + KIcon::SizeMedium, KIcon::DefaultState, + 0, true)); + warningLayout->addWidget(warningIcon); + + QLabel *warningText = new QLabel(i18n("This will also remove the files from " + "your local working copy!"), this); + warningLayout->addWidget(warningText); + + layout->addSpacing(5); + layout->addLayout(warningLayout); + layout->addSpacing(5); + } + QFrame *frame = new QFrame(this); frame->setFrameStyle(QFrame::HLine | QFrame::Sunken); |