Skip to content

Commit

Permalink
fix codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
vigsterkr committed Apr 2, 2022
1 parent e4acdb3 commit 847dfa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/library/browse/browsefeature.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "library/browse/browsefeature.h"

#include <QAction>
#include <QtConcurrent>
#include <QFileInfo>
#include <QMenu>
#include <QPushButton>
Expand Down
4 changes: 2 additions & 2 deletions src/library/browse/foldertreemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ void FolderTreeModel::directoryHasChildren(const QString& path) {
// http://stackoverflow.com/questions/2579948/checking-if-subfolders-exist-linux

std::string dot("."), dotdot("..");
QByteArray ba = QFile::encodeName(path);
DIR* directory = opendir(ba);
QByteArray directory_name = QFile::encodeName(path);
DIR* directory = opendir(directory_name);
int unknown_count = 0;
int total_count = 0;
if (directory != nullptr) {
Expand Down

0 comments on commit 847dfa1

Please sign in to comment.