mirror of https://github.com/procxx/kepka.git
Fixed ability to edit media with sticker.
Regression was introduced in efa4deef6a
.
This commit is contained in:
parent
f4042d5ad5
commit
d4f2b8dd0e
|
@ -322,9 +322,6 @@ std::optional<PreparedList> PreparedList::PreparedFileFromFilesDialog(
|
|||
auto filteredFiles = ranges::view::all(
|
||||
temp.files
|
||||
) | ranges::view::filter([&](const auto &file) {
|
||||
if (!isAlbum) {
|
||||
return true;
|
||||
}
|
||||
const auto info = QFileInfo(file.path);
|
||||
if (Core::IsMimeSticker(Core::MimeTypeForFile(info).name())) {
|
||||
if (isSingleFile) {
|
||||
|
@ -332,6 +329,9 @@ std::optional<PreparedList> PreparedList::PreparedFileFromFilesDialog(
|
|||
}
|
||||
return false;
|
||||
}
|
||||
if (!isAlbum) {
|
||||
return true;
|
||||
}
|
||||
using Info = FileMediaInformation;
|
||||
|
||||
const auto media = &file.information->media;
|
||||
|
|
Loading…
Reference in New Issue