| 413 | } |
| 414 | |
| 415 | bool equalProjectFile( const QString& configPath, OpenProjectDialog* dlg ) |
| 416 | { |
| 417 | KSharedConfigPtr cfg = KSharedConfig::openConfig( configPath, KConfig::SimpleConfig ); |
| 418 | KConfigGroup grp = cfg->group(QStringLiteral("Project")); |
| 419 | QString defaultName = dlg->projectFileUrl().adjusted(QUrl::RemoveFilename | QUrl::StripTrailingSlash).fileName(); |
| 420 | return (grp.readEntry( "Name", QString() ) == dlg->projectName() || dlg->projectName() == defaultName) && |
| 421 | grp.readEntry( "Manager", QString() ) == dlg->projectManager(); |
| 422 | } |
| 423 | |
| 424 | QUrl ProjectDialogProvider::askProjectConfigLocation(bool fetch, const QUrl& startUrl, |
| 425 | const QUrl& repoUrl, IPlugin* vcsOrProviderPlugin) |
no test coverage detected