Commit 8adaacbb authored by Michael Pyne's avatar Michael Pyne

Backport some of Stephan's style guide fixes to KDE 3.4 when they do not break string freeze.

(i.e. can be implemented by using a different KMessageBox static method or a different
KStdGuiItem).

svn path=/branches/KDE/3.4/kdemultimedia/juk/; revision=467028
parent b34c7382
......@@ -183,12 +183,13 @@ void CollectionList::slotDeleteItem(KFileItem *item)
void CollectionList::clear()
{
int result = KMessageBox::warningYesNo(this,
int result = KMessageBox::warningContinueCancel(this,
i18n("Removing an item from the collection will also remove it from "
"all of your playlists. Are you sure you want to continue?\n\n"
"Note, however, that if the directory that these files are in is in "
"your \"scan on startup\" list, they will be readded on startup."));
if(result == KMessageBox::Yes) {
if(result == KMessageBox::Continue) {
Playlist::clear();
emit signalCollectionChanged();
}
......
......@@ -2080,13 +2080,12 @@ void Playlist::slotInlineEditDone(QListViewItem *, const QString &, int column)
changed = true;
if(!changed ||
(l.count() > 1 && KMessageBox::warningYesNo(
(l.count() > 1 && KMessageBox::warningContinueCancel(
0,
i18n("This will edit multiple files. Are you sure?"),
QString::null,
KStdGuiItem::yes(),
KStdGuiItem::no(),
"DontWarnMultipleTags") == KMessageBox::No))
KStdGuiItem::cont(),
"DontWarnMultipleTags") == KMessageBox::Cancel))
{
return;
}
......
......@@ -703,8 +703,8 @@ void TagEditor::saveChangesPrompt()
i18n("Do you want to save your changes to:\n"),
files,
i18n("Save Changes"),
KStdGuiItem::yes(),
KStdGuiItem::no(),
KStdGuiItem::save(),
KStdGuiItem::discard(),
"tagEditor_showSaveChangesBox") == KMessageBox::Yes)
{
save(m_items);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment