Skip to content

Commit

Permalink
Now uses config variable for includeFrom
Browse files Browse the repository at this point in the history
  • Loading branch information
muldjord committed Jan 17, 2022
1 parent 947d73a commit f7cb115
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/skyscraper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1508,8 +1508,8 @@ void Skyscraper::loadConfig(const QCommandLineParser &parser)
QList<QString> requestedFiles = parser.positionalArguments();

// Add files from '--includefrom', if any
if(parser.isSet("includefrom")) {
QFileInfo includeFromInfo(parser.value("includefrom"));
if(!config.includeFrom.isEmpty()) {
QFileInfo includeFromInfo(config.includeFrom);
if(includeFromInfo.exists()) {
QFile includeFrom(includeFromInfo.absoluteFilePath());
if(includeFrom.open(QIODevice::ReadOnly)) {
Expand Down

0 comments on commit f7cb115

Please sign in to comment.