forked from qt-creator/qt-creator
Git: Fix branch expansion on show before the diff display is done
The description is shown first (with the <Expand> placeholder), and the diff parsing can be long. If <Expand> is clicked during parsing, it fails because the base directory is not set yet. Change-Id: Ib5e839b292c32091c726f24eb643d0fa5a142cb7 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
2b650f713a
commit
eaf8ccf118
@@ -55,6 +55,11 @@ QString DiffEditorController::baseDirectory() const
|
||||
return m_document->baseDirectory();
|
||||
}
|
||||
|
||||
void DiffEditorController::setBaseDirectory(const QString &directory)
|
||||
{
|
||||
m_document->setBaseDirectory(directory);
|
||||
}
|
||||
|
||||
int DiffEditorController::contextLineCount() const
|
||||
{
|
||||
return m_document->contextLineCount();
|
||||
|
||||
Reference in New Issue
Block a user