From 816b84b7a4263c587c661e4c7178f3b6721e4cfe Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 15 Feb 2014 04:55:46 +0100 Subject: Replace ArchiveModel::FileType with #define These constants are used all over the place and aren't really specific to ArchiveModel, so use the preprocessor. --- archivebrowsermodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archivebrowsermodel.cpp') diff --git a/archivebrowsermodel.cpp b/archivebrowsermodel.cpp index ce81d1b..202a406 100644 --- a/archivebrowsermodel.cpp +++ b/archivebrowsermodel.cpp @@ -173,7 +173,7 @@ void ArchiveBrowserModel::populate(){ QList fileData; fileData << QVariant() << localFilesQ.value(0) << localFilesQ.value(4) << FileNode << localFilesQ.value(1) << localFilesQ.value(3) << localFilesQ.value(2) << Helper::createArchivePath(localFilesQ.value(0).toString(), localFilesQ.value(5).toString()) << false; totalSize += localFilesQ.value(1).toDouble(); - if(localFilesQ.value(2) == 1){ //this is a movie file, no need for another enum + if(localFilesQ.value(2) == FT_MOVIE){ int q = localFilesQ.value(3).toInt(); quality = q; if(!mAvailableQualities.contains(q)){ -- cgit v1.2.3-70-g09d2