Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
bc9a6693
Commit
bc9a6693
authored
Oct 21, 2011
by
shibakaneki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolved cache issue 336
parent
698ec0e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
UBDesktopAnnotationController.cpp
src/desktop/UBDesktopAnnotationController.cpp
+0
-1
UBCachePropertiesWidget.cpp
src/gui/UBCachePropertiesWidget.cpp
+16
-11
No files found.
src/desktop/UBDesktopAnnotationController.cpp
View file @
bc9a6693
...
...
@@ -918,7 +918,6 @@ void UBDesktopAnnotationController::updateMask(bool bTransparent)
// UBApplication::boardController->paletteManager()->mDesktopRightPalette
if
(
UBApplication
::
boardController
->
paletteManager
()
->
rightPalette
()
->
isVisible
())
{
qDebug
()
<<
">>>>>> Drawing the mask for the right palette"
;
p
.
drawRect
(
UBApplication
::
boardController
->
paletteManager
()
->
rightPalette
()
->
geometry
().
x
(),
UBApplication
::
boardController
->
paletteManager
()
->
rightPalette
()
->
geometry
().
y
(),
UBApplication
::
boardController
->
paletteManager
()
->
rightPalette
()
->
width
(),
...
...
src/gui/UBCachePropertiesWidget.cpp
View file @
bc9a6693
...
...
@@ -205,16 +205,21 @@ UBCachePropertiesWidget::~UBCachePropertiesWidget()
void
UBCachePropertiesWidget
::
onCloseClicked
()
{
// Remove the current cache from the list
mCaches
.
remove
(
mCaches
.
indexOf
(
mpCurrentCache
));
if
(
!
mCaches
.
empty
())
{
// Remove the current cache from the list
mCaches
.
remove
(
mCaches
.
indexOf
(
mpCurrentCache
));
// Remove the cache from the board
UBApplication
::
boardController
->
activeScene
()
->
removeItem
(
mpCurrentCache
);
mpCurrentCache
=
NULL
;
// Remove the cache from the board
UBApplication
::
boardController
->
activeScene
()
->
removeItem
(
mpCurrentCache
);
mpCurrentCache
=
NULL
;
if
(
mCaches
.
empty
())
{
emit
cacheListEmpty
();
if
(
mCaches
.
empty
())
{
emit
cacheListEmpty
();
}
emit
hideTab
(
name
());
}
}
...
...
@@ -321,8 +326,8 @@ void UBCachePropertiesWidget::updateCurrentCache()
// If we fall here, that means:
// 1 - that this page has no cache
// 2 - we
do not on Board pag
e
// 3 - we
in board mode, but show desktop (as really - d
esktop mode)
// 2 - we
are not in Board mod
e
// 3 - we
are in Board mode, but show desktop (as really - D
esktop mode)
emit
hideTab
(
name
());
mpCurrentCache
=
NULL
;
setDisabled
(
true
);
...
...
@@ -340,4 +345,4 @@ void UBCachePropertiesWidget::onCacheEnabled()
{
emit
showTab
(
name
());
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment