diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2007-11-07 02:51:08 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2007-11-07 02:51:08 (GMT) |
commit | 07d25b6a5f42550298dc4f1cdbf8f00d169f59cf (patch) | |
tree | 5cfba968b68e6d82aab6d4d38c94ed9971e0dafd /Source/QtDialog/CMakeSetupDialog.cxx | |
parent | 7294b272939c768f641ea9bfcf5f65b0fb2b3a3f (diff) | |
download | CMake-07d25b6a5f42550298dc4f1cdbf8f00d169f59cf.zip CMake-07d25b6a5f42550298dc4f1cdbf8f00d169f59cf.tar.gz CMake-07d25b6a5f42550298dc4f1cdbf8f00d169f59cf.tar.bz2 |
BUG: only handle drop events if they'll really change something.
Diffstat (limited to 'Source/QtDialog/CMakeSetupDialog.cxx')
-rw-r--r-- | Source/QtDialog/CMakeSetupDialog.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index 385d2e3..066bec6 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -604,13 +604,19 @@ void CMakeSetupDialog::dropEvent(QDropEvent* e) if(file.endsWith("CMakeCache.txt", Qt::CaseInsensitive)) { QFileInfo info(file); - this->setBinaryDirectory(info.absolutePath()); + if(this->CMakeThread->cmakeInstance()->binaryDirectory() != info.absolutePath()) + { + this->setBinaryDirectory(info.absolutePath()); + } } else if(file.endsWith("CMakeLists.txt", Qt::CaseInsensitive)) { QFileInfo info(file); - this->setSourceDirectory(info.absolutePath()); - this->setBinaryDirectory(info.absolutePath()); + if(this->CMakeThread->cmakeInstance()->binaryDirectory() != info.absolutePath()) + { + this->setSourceDirectory(info.absolutePath()); + this->setBinaryDirectory(info.absolutePath()); + } } } |