Commit 93eb09ff authored by Scott Wheeler's avatar Scott Wheeler

Same thing for kdError() -> kError()

svn path=/trunk/KDE/kdemultimedia/juk/; revision=513899
parent bf57c01a
......@@ -276,7 +276,7 @@ bool CoverInfo::convertOldStyleCover() const
// If we convert we need to remove the old cover otherwise we'll find
// it later if the user un-sets the new cover.
if(!QFile::remove(oldLocation))
kdError(65432) << "Unable to remove converted cover at " << oldLocation << endl;
kError(65432) << "Unable to remove converted cover at " << oldLocation << endl;
return true;
}
......
......@@ -397,7 +397,7 @@ bool FileRenamerWidget::removeRow(unsigned id)
}
if(m_rows.count() == 1) {
kdError(65432) << "Can't remove last row of File Renamer.\n";
kError(65432) << "Can't remove last row of File Renamer.\n";
return false;
}
......@@ -512,12 +512,12 @@ void FileRenamerWidget::createTagRows()
for(; it != categoryOrder.constEnd(); ++it) {
if(*it < StartTag || *it >= NumTypes) {
kdError(65432) << "Invalid category encountered in file renamer configuration.\n";
kError(65432) << "Invalid category encountered in file renamer configuration.\n";
continue;
}
if(m_rows.count() == MAX_CATEGORIES) {
kdError(65432) << "Maximum number of File Renamer tags reached, bailing.\n";
kError(65432) << "Maximum number of File Renamer tags reached, bailing.\n";
break;
}
......@@ -698,7 +698,7 @@ void FileRenamerWidget::moveItem(unsigned id, MovementDirection direction)
unsigned FileRenamerWidget::idOfPosition(unsigned position) const
{
if(position >= m_rows.count()) {
kdError(65432) << "Search for position " << position << " out-of-range.\n";
kError(65432) << "Search for position " << position << " out-of-range.\n";
return static_cast<unsigned>(-1);
}
......@@ -706,7 +706,7 @@ unsigned FileRenamerWidget::idOfPosition(unsigned position) const
if(m_rows[i].position == position)
return i;
kdError(65432) << "Unable to find identifier for position " << position << endl;
kError(65432) << "Unable to find identifier for position " << position << endl;
return static_cast<unsigned>(-1);
}
......@@ -716,7 +716,7 @@ unsigned FileRenamerWidget::findIdentifier(const CategoryID &category) const
if(m_rows[index].category == category)
return index;
kdError(65432) << "Unable to find match for category " <<
kError(65432) << "Unable to find match for category " <<
TagRenamerOptions::tagTypeText(category.category) <<
", number " << category.categoryNumber << endl;
......@@ -766,7 +766,7 @@ void FileRenamerWidget::insertCategory()
{
TagType category = TagRenamerOptions::tagFromCategoryText(m_category->currentText());
if(category == Unknown) {
kdError(65432) << "Trying to add unknown category somehow.\n";
kError(65432) << "Trying to add unknown category somehow.\n";
return;
}
......@@ -828,7 +828,7 @@ void FileRenamerWidget::slotRemoveRow(int id)
{
// Remove the given identified row.
if(!removeRow(id))
kdError(65432) << "Unable to remove row " << id << endl;
kError(65432) << "Unable to remove row " << id << endl;
}
//
......@@ -916,7 +916,7 @@ bool FileRenamer::moveFile(const QString &src, const QString &dest)
// Create the directory.
if(!KStandardDirs::exists(dir.path()))
if(!KStandardDirs::makeDir(dir.path())) {
kdError() << "Unable to create directory " << dir.path() << endl;
kError() << "Unable to create directory " << dir.path() << endl;
return false;
}
......
......@@ -258,7 +258,7 @@ KSelectAction *PlayerManager::playerSelectAction(QObject *parent) // static
#endif
if(l.isEmpty()) {
kdError(65432) << "Your JuK seems to have no output backend possibilities.\n";
kError(65432) << "Your JuK seems to have no output backend possibilities.\n";
l.append(i18n("aKode")); // Looks like akode is the default backend.
}
......
......@@ -389,7 +389,7 @@ void PlaylistBox::slotSavePlaylists()
void PlaylistBox::slotShowDropTarget()
{
if(!m_dropItem) {
kdError(65432) << "Trying to show the playlist of a null item!\n";
kError(65432) << "Trying to show the playlist of a null item!\n";
return;
}
......
......@@ -108,8 +108,8 @@ void DefaultSequenceIterator::advance()
if(!m_albumSearch.isNull()) {
PlaylistItemList albumMatches = m_albumSearch.matchedItems();
if(albumMatches.isEmpty()) {
kdError(65432) << "Unable to initialize album random play.\n";
kdError(65432) << "List of potential results is empty.\n";
kError(65432) << "Unable to initialize album random play.\n";
kError(65432) << "List of potential results is empty.\n";
return; // item is still set to random song from a few lines earlier.
}
......@@ -129,7 +129,7 @@ void DefaultSequenceIterator::advance()
}
}
else
kdError(65432) << "Unable to perform album random play on " << *item << endl;
kError(65432) << "Unable to perform album random play on " << *item << endl;
}
else
item = m_randomItems[KApplication::random() % m_randomItems.count()];
......@@ -248,7 +248,7 @@ void DefaultSequenceIterator::refillRandomList(Playlist *p)
p = current()->playlist();
if(!p) {
kdError(65432) << k_funcinfo << "Item has no playlist!\n";
kError(65432) << k_funcinfo << "Item has no playlist!\n";
return;
}
}
......
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