Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor improvement to initializing EpisodesParser::Parser's helpers.

  • Loading branch information...
commit 882e3efc85a9cbd599b59d5614f31f870e728442 1 parent a74e1e0
@wimleers authored
Showing with 7 additions and 5 deletions.
  1. +6 −5 code/UI/MainWindow.cpp
  2. +1 −0  code/UI/MainWindow.h
View
11 code/UI/MainWindow.cpp
@@ -353,11 +353,12 @@ void MainWindow::initLogic() {
qRegisterMetaType<Time>("Time");
Analytics::registerBasicMetaTypes();
- EpisodesParser::Parser::initParserHelpers("./config/browscap.csv",
- "./config/browscap-index.db",
- "./config/GeoIPCity.dat",
- "./config/GeoIPASNum.dat",
- "./config/EpisodesSpeeds.csv"
+ QString basePath = QCoreApplication::applicationDirPath();
+ EpisodesParser::Parser::initParserHelpers(basePath + "/config/browscap.csv",
+ basePath + "/config/browscap-index.db",
+ basePath + "/config/GeoIPCity.dat",
+ basePath + "/config/GeoIPASNum.dat",
+ basePath + "/config/EpisodesSpeeds.csv"
);
// Instantiate the EpisodesParser and the Analytics. Then connect them.
View
1  code/UI/MainWindow.h
@@ -36,6 +36,7 @@
#include <QStandardItem>
#include <QSortFilterProxyModel>
+#include <QCoreApplication>
#include <QFileInfo>
#include <QSettings>
Please sign in to comment.
Something went wrong with that request. Please try again.