Permalink
Browse files

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

  • Loading branch information...
1 parent a74e1e0 commit 882e3efc85a9cbd599b59d5614f31f870e728442 @wimleers committed Jun 29, 2011
Showing with 7 additions and 5 deletions.
  1. +6 −5 code/UI/MainWindow.cpp
  2. +1 −0 code/UI/MainWindow.h
View
@@ -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
@@ -36,6 +36,7 @@
#include <QStandardItem>
#include <QSortFilterProxyModel>
+#include <QCoreApplication>
#include <QFileInfo>
#include <QSettings>

0 comments on commit 882e3ef

Please sign in to comment.