forked from qt-creator/qt-creator
Text editor: Introduce per project settings
With some refactorings to make the code look better. Reviewed-by: con
This commit is contained in:
@@ -722,7 +722,7 @@ static QTextCodec *findProjectCodec(const QString &dir)
|
||||
for (ProjectList::const_iterator it = projects.constBegin(); it != pcend; ++it)
|
||||
if (const Core::IFile *file = (*it)->file())
|
||||
if (file->fileName().startsWith(dir)) {
|
||||
QTextCodec *codec = (*it)->editorConfiguration()->defaultTextCodec();
|
||||
QTextCodec *codec = (*it)->editorConfiguration()->textCodec();
|
||||
if (VCSBase::Constants::Internal::debug)
|
||||
qDebug() << Q_FUNC_INFO << dir << (*it)->displayName() << codec->name();
|
||||
return codec;
|
||||
|
||||
Reference in New Issue
Block a user