diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-12-01 16:34:51 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-12-01 16:34:51 +0100 |
commit | f56eff04ef4d23b62a6e095eca5d4b9f2b52e023 (patch) | |
tree | d7e5ccd335f4be09d11d3d6bb9c333fa6945516c /logic/ModList.cpp | |
parent | a3fbf05c7b77d513b107e34732b2d04045a05c3c (diff) | |
download | MultiMC-f56eff04ef4d23b62a6e095eca5d4b9f2b52e023.tar MultiMC-f56eff04ef4d23b62a6e095eca5d4b9f2b52e023.tar.gz MultiMC-f56eff04ef4d23b62a6e095eca5d4b9f2b52e023.tar.lz MultiMC-f56eff04ef4d23b62a6e095eca5d4b9f2b52e023.tar.xz MultiMC-f56eff04ef4d23b62a6e095eca5d4b9f2b52e023.zip |
Fix (hopefully) library dependency resolution.
Installing libs is now enabled, hardcoded.
Enable -Wall for all builds.
Fix many warnings and latent bugs.
Diffstat (limited to 'logic/ModList.cpp')
-rw-r--r-- | logic/ModList.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/logic/ModList.cpp b/logic/ModList.cpp index 8ec73955..d5235fe9 100644 --- a/logic/ModList.cpp +++ b/logic/ModList.cpp @@ -39,18 +39,26 @@ void ModList::startWatching() { is_watching = m_watcher->addPath(m_dir.absolutePath()); if (is_watching) + { QLOG_INFO() << "Started watching " << m_dir.absolutePath(); + } else + { QLOG_INFO() << "Failed to start watching " << m_dir.absolutePath(); + } } void ModList::stopWatching() { is_watching = !m_watcher->removePath(m_dir.absolutePath()); if (!is_watching) + { QLOG_INFO() << "Stopped watching " << m_dir.absolutePath(); + } else + { QLOG_INFO() << "Failed to stop watching " << m_dir.absolutePath(); + } } bool ModList::update() @@ -64,7 +72,6 @@ bool ModList::update() bool orderWasInvalid = false; // first, process the ordered items (if any) - int currentOrderIndex = 0; QStringList listOrder = readListFile(); for (auto item : listOrder) { @@ -363,6 +370,7 @@ QVariant ModList::headerData(int section, Qt::Orientation orientation, int role) case 2: return QString("Minecraft"); } + return QString(); } Qt::ItemFlags ModList::flags(const QModelIndex &index) const |