Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLazarescu committed Feb 11, 2024
1 parent 804bf2a commit 72029c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ bool LibraryProxyModel::filterAcceptsRow(int source_row,
auto index = sourceModel()->index(source_row, 0, source_parent);

if(!getIsFiltering())
return filterAcceptsFolder(index);
return filterAcceptsFolder(index) && filterAcceptsTags(index);

return filterAcceptsTags(index) && filterAcceptsAuthors(index) &&
filterAcceptsFormat(index) && filterAcceptsStatus(index) &&
Expand Down
6 changes: 5 additions & 1 deletion src/presentation/homePage/MBookDetailsPopup.qml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ Popup {
spacing: 13

component InputBox: MLabeledInputBox {
id: titleField
Layout.fillWidth: true
boxHeight: 34
headerFontWeight: Font.Bold
Expand All @@ -246,12 +245,14 @@ Popup {
}

InputBox {
id: titleField
headerText: qsTr("Title")
text: Globals.selectedBook
!== null ? Globals.selectedBook.title : ""
}

InputBox {
id: authorsField
headerText: qsTr("Authors")
text: Globals.selectedBook
!== null ? Globals.selectedBook.authors : ""
Expand Down Expand Up @@ -281,19 +282,22 @@ Popup {
}

InputBox {
id: documentCreatorField
headerText: qsTr("Document creator")
text: Globals.selectedBook
!== null ? Globals.selectedBook.creator : ""
}

InputBox {
id: creationDateField
headerText: qsTr("Creation date")
text: Globals.selectedBook
!== null ? Globals.selectedBook.creationDate : ""
readOnly: true
}

InputBox {
id: formatField
headerText: qsTr("Format")
text: Globals.selectedBook !== null
&& Globals.selectedBook.format !== "" ? Globals.selectedBook.format : internal.placeholderText
Expand Down

0 comments on commit 72029c6

Please sign in to comment.