diff options
| author | Tannin <devnull@localhost> | 2013-05-22 18:16:56 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-05-22 18:16:56 +0200 |
| commit | f0ba6ce95c1f30524453ce996fa536a888f018da (patch) | |
| tree | ff6fc7ad1de0e4813a0485cc7ab90baf23c51595 /src/modinfo.cpp | |
| parent | 45f6cd21a2c730b9dea322b0dba30120cdc40521 (diff) | |
- added NCC to repository
- deleting files from download manager now moves them to recycle bin instead of deleting permanentyl
- cleanup in installation manager
- ini editor (old) can now be configured to open files in external editor
- bugfix: .net check in ncc installer was broken
- bugfix: mod-overwrite dialog wasn't displayed for complex installers
Diffstat (limited to 'src/modinfo.cpp')
| -rw-r--r-- | src/modinfo.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/modinfo.cpp b/src/modinfo.cpp index bc475b92..a08a4ccd 100644 --- a/src/modinfo.cpp +++ b/src/modinfo.cpp @@ -369,6 +369,15 @@ ModInfoRegular::~ModInfoRegular() } } +bool ModInfoRegular::isEmpty() const +{ + QDirIterator iter(m_Path, QDir::NoDotAndDotDot | QDir::Files | QDir::Dirs); + if (!iter.hasNext()) return true; + iter.next(); + if ((iter.fileName() == "meta.ini") && !iter.hasNext()) return true; + return false; +} + void ModInfoRegular::saveMeta() { @@ -573,7 +582,7 @@ void ModInfoRegular::setNeverEndorse() bool ModInfoRegular::remove() { m_MetaInfoChanged = false; - return shellDelete(QStringList(absolutePath()), NULL); + return shellDelete(QStringList(absolutePath())); } void ModInfoRegular::endorse(bool doEndorse) |
