Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Miguel Lopez
Krita
Commits
fe98c3e9
Commit
fe98c3e9
authored
Jan 11, 2015
by
Scott Petrovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
favorite presets amount is stored in kisconfig now
parent
06028ae5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
krita/ui/kis_popup_palette.cpp
krita/ui/kis_popup_palette.cpp
+3
-1
No files found.
krita/ui/kis_popup_palette.cpp
View file @
fe98c3e9
...
...
@@ -18,6 +18,7 @@
*/
#include "kis_config.h"
#include "kis_popup_palette.h"
#include "kis_paintop_box.h"
#include "kis_favorite_resource_manager.h"
...
...
@@ -542,7 +543,8 @@ int KisPopupPalette::calculatePresetIndex(QPointF point, int /*n*/)
int
KisPopupPalette
::
numSlots
()
{
return
qMax
(
m_resourceManager
->
numFavoritePresets
(),
10
);
KisConfig
config
;
return
qMax
(
config
.
favoritePresets
(),
10
);
}
#include "kis_popup_palette.moc"
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