]> git.lizzy.rs Git - minetest.git/blobdiff - src/quicktune_shortcutter.h
src/client/tile.cpp: Fix reference counting
[minetest.git] / src / quicktune_shortcutter.h
index 2e3b5310bdb6fae4bf41635d1ad234ea35b1f194..fe1463c936b4b323772933e615b066d2ead4250c 100644 (file)
@@ -1,6 +1,6 @@
 /*
-Minetest-c55
-Copyright (C) 2012 celeron55, Perttu Ahola <celeron55@gmail.com>
+Minetest
+Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as published by
@@ -29,6 +29,11 @@ class QuicktuneShortcutter
        u32 m_selected_i;
        std::string m_message;
 public:
+       bool hasMessage()
+       {
+               return m_message != "";
+       }
+
        std::string getMessage()
        {
                std::string s = m_message;