mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 16:32:16 -07:00
Address comments.
This commit is contained in:
parent
5c61b7826c
commit
36dcdc966e
2 changed files with 5 additions and 5 deletions
|
|
@ -57,7 +57,7 @@ void DeckPreviewWidget::initializeUi(const bool deckLoadSuccess)
|
||||||
void DeckPreviewWidget::updateVisibility()
|
void DeckPreviewWidget::updateVisibility()
|
||||||
{
|
{
|
||||||
if (isVisible() != checkVisibility()) {
|
if (isVisible() != checkVisibility()) {
|
||||||
setVisible(checkVisibility());
|
setHidden(!checkVisibility());
|
||||||
emit visibilityUpdated();
|
emit visibilityUpdated();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -153,8 +153,8 @@ QStringList VisualDeckStorageFolderDisplayWidget::getAllFiles() const
|
||||||
{
|
{
|
||||||
QStringList allFiles;
|
QStringList allFiles;
|
||||||
|
|
||||||
// QDirIterator with QDir::Files and QDir::NoSymLinks ensures only files are listed (no directories or symlinks)
|
// QDirIterator with QDir::Files ensures only files are listed (no directories)
|
||||||
QDirIterator it(filePath, QDir::Files | QDir::NoSymLinks);
|
QDirIterator it(filePath, QDir::Files);
|
||||||
|
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
allFiles << it.next(); // Add each file path to the list
|
allFiles << it.next(); // Add each file path to the list
|
||||||
|
|
@ -167,8 +167,8 @@ QStringList VisualDeckStorageFolderDisplayWidget::getAllSubFolders() const
|
||||||
{
|
{
|
||||||
QStringList allFolders;
|
QStringList allFolders;
|
||||||
|
|
||||||
// QDirIterator with QDir::Files and QDir::NoSymLinks ensures only files are listed (no directories or symlinks)
|
// QDirIterator with QDir::Files ensures only files are listed (no directories)
|
||||||
QDirIterator it(filePath, QDir::Dirs | QDir::NoSymLinks | QDir::NoDotAndDotDot);
|
QDirIterator it(filePath, QDir::Dirs | QDir::NoDotAndDotDot);
|
||||||
|
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
allFolders << it.next(); // Add each file path to the list
|
allFolders << it.next(); // Add each file path to the list
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue