summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-25 12:54:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-25 12:54:39 +0300
commit4c0d3dc62399e35c288cb82dfbf3f8811328f06c (patch)
tree24db2449750712363aa59c5b20807976a90f0771 /src/actions
parente5ac29f35d9a0ede9d1263ab1bb7c20568dbdd67 (diff)
downloadmv-4c0d3dc62399e35c288cb82dfbf3f8811328f06c.tar.gz
mv-4c0d3dc62399e35c288cb82dfbf3f8811328f06c.tar.bz2
mv-4c0d3dc62399e35c288cb82dfbf3f8811328f06c.tar.xz
mv-4c0d3dc62399e35c288cb82dfbf3f8811328f06c.zip
Move chat command /cleanfonts into actions.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/actions.cpp12
-rw-r--r--src/actions/actions.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index ae9a21b76..188a46ea1 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -556,4 +556,16 @@ impHandler0(cleanGraphics)
return true;
}
+impHandler0(cleanFonts)
+{
+ if (gui)
+ gui->clearFonts();
+ if (debugChatTab)
+ {
+ // TRANSLATORS: clear fonts cache message
+ debugChatTab->chatLog(_("Cache cleaned"));
+ }
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/actions.h b/src/actions/actions.h
index 39017c33a..9b9c148b8 100644
--- a/src/actions/actions.h
+++ b/src/actions/actions.h
@@ -58,6 +58,7 @@ namespace Actions
decHandler(where);
decHandler(who);
decHandler(cleanGraphics);
+ decHandler(cleanFonts);
} // namespace Actions
#undef decHandler