Changeset View
Changeset View
Standalone View
Standalone View
plugins/cmake/settings/cmakepreferences.cpp
Show First 20 Lines • Show All 330 Lines • ▼ Show 20 Line(s) | |||||
331 | } | 331 | } | ||
332 | 332 | | |||
333 | void CMakePreferences::removeBuildDir() | 333 | void CMakePreferences::removeBuildDir() | ||
334 | { | 334 | { | ||
335 | int curr=m_prefsUi->buildDirs->currentIndex(); | 335 | int curr=m_prefsUi->buildDirs->currentIndex(); | ||
336 | if(curr < 0) | 336 | if(curr < 0) | ||
337 | return; | 337 | return; | ||
338 | 338 | | |||
339 | Path removedPath = CMake::currentBuildDir( m_project ); | 339 | // would we ever want to delete anything other than the actual directory | ||
apol: Are you trying to confuse whoever wants to read this code again? | |||||
340 | // (in case the user-specified path contains symlinks)?! | ||||
341 | Path removedPath = CMake::currentBuildDir( m_project, true ); | ||||
340 | QString removed = removedPath.toLocalFile(); | 342 | QString removed = removedPath.toLocalFile(); | ||
341 | if(QDir(removed).exists()) | 343 | if(QDir(removed).exists()) | ||
342 | { | 344 | { | ||
343 | KMessageBox::ButtonCode ret = KMessageBox::warningYesNo(this, | 345 | KMessageBox::ButtonCode ret = KMessageBox::warningYesNo(this, | ||
344 | i18n("The %1 directory is about to be removed in KDevelop's list.\n" | 346 | i18n("The %1 directory is about to be removed in KDevelop's list.\n" | ||
345 | "Do you want KDevelop to remove it in the file system as well?", removed)); | 347 | "Do you want KDevelop to remove it in the file system as well?", removed)); | ||
346 | if(ret == KMessageBox::Yes) | 348 | if(ret == KMessageBox::Yes) | ||
347 | { | 349 | { | ||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |
Are you trying to confuse whoever wants to read this code again?