Fix various clazy warnings
This commit is contained in:
@@ -123,9 +123,10 @@ QString About::MainHtml() const {
|
||||
ret += QString("<p>");
|
||||
ret += tr("If you like Strawberry and can make use of it, consider sponsoring or donating.");
|
||||
ret += QString("<br />");
|
||||
ret += tr("You can sponsor the author on %1. You can also make a one-time payment through %2.")
|
||||
.arg(QString("<a style=\"color:%1;\" href=\"https://github.com/sponsors/jonaski\">GitHub sponsors</a>").arg(palette().text().color().name()))
|
||||
.arg(QString("<a style=\"color:%1;\" href=\"https://paypal.me/jonaskvinge\">paypal.me/jonaskvinge</a>").arg(palette().text().color().name()));
|
||||
ret += tr("You can sponsor the author on %1. You can also make a one-time payment through %2.").arg(
|
||||
QString("<a style=\"color:%1;\" href=\"https://github.com/sponsors/jonaski\">GitHub sponsors</a>").arg(palette().text().color().name()),
|
||||
QString("<a style=\"color:%1;\" href=\"https://paypal.me/jonaskvinge\">paypal.me/jonaskvinge</a>").arg(palette().text().color().name())
|
||||
);
|
||||
|
||||
ret += QString("</p>");
|
||||
|
||||
|
||||
@@ -541,7 +541,7 @@ void EditTagDialog::InitFieldValue(const FieldData &field, const QModelIndexList
|
||||
editor->set_value(data_[sel[0].row()].current_value(field.id_));
|
||||
}
|
||||
}
|
||||
else {
|
||||
else if (field.editor_) {
|
||||
qLog(Error) << "Missing editor for" << field.editor_->objectName();
|
||||
}
|
||||
|
||||
@@ -557,7 +557,7 @@ void EditTagDialog::UpdateFieldValue(const FieldData &field, const QModelIndexLi
|
||||
if (ExtendedEditor *editor = dynamic_cast<ExtendedEditor*>(field.editor_)) {
|
||||
value = editor->value();
|
||||
}
|
||||
else {
|
||||
else if (field.editor_) {
|
||||
qLog(Error) << "Missing editor for" << field.editor_->objectName();
|
||||
}
|
||||
|
||||
@@ -583,7 +583,7 @@ void EditTagDialog::UpdateModifiedField(const FieldData &field, const QModelInde
|
||||
QFont new_font(font());
|
||||
new_font.setBold(modified);
|
||||
field.label_->setFont(new_font);
|
||||
field.editor_->setFont(new_font);
|
||||
if (field.editor_) field.editor_->setFont(new_font);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -134,7 +134,7 @@ class EditTagDialog : public QDialog {
|
||||
void NextSong();
|
||||
|
||||
void SongSaveTagsComplete(TagReaderReply *reply, const QString &filename, Song song);
|
||||
void SongSaveArtComplete(TagReaderReply *reply, const QString &filename, Song song, const UpdateCoverAction cover_action);
|
||||
void SongSaveArtComplete(TagReaderReply *reply, const QString &filename, Song song, const EditTagDialog::UpdateCoverAction cover_action);
|
||||
|
||||
private:
|
||||
struct FieldData {
|
||||
|
||||
Reference in New Issue
Block a user