From 4782efddcb1a8e4bade33b446e289d5794464897 Mon Sep 17 00:00:00 2001 From: Eberhard Graether Date: Tue, 29 Sep 2015 15:22:00 +0200 Subject: [PATCH] ui: always show whole file on top when selecting file node --- bin/app/data/src/sample/header.h | 3 +++ src/lib/component/controller/CodeController.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 bin/app/data/src/sample/header.h diff --git a/bin/app/data/src/sample/header.h b/bin/app/data/src/sample/header.h new file mode 100644 index 00000000..1fc7f1d7 --- /dev/null +++ b/bin/app/data/src/sample/header.h @@ -0,0 +1,3 @@ + +// nothing here +// except for text diff --git a/src/lib/component/controller/CodeController.cpp b/src/lib/component/controller/CodeController.cpp index ef30137e..98f6141e 100644 --- a/src/lib/component/controller/CodeController.cpp +++ b/src/lib/component/controller/CodeController.cpp @@ -174,7 +174,7 @@ std::vector CodeController::getSnippetsForActiveTok } ); - if (isDeclarationFile || collection->getTokenLocationFileCount() < 5) + if (isDeclarationFile || collection->getTokenLocationFileCount() < 5 || file->isWholeCopy) { std::vector fileSnippets = getSnippetsForActiveTokenLocationsInFile(file);