summaryrefslogtreecommitdiff
path: root/src/gui/setupinputpages.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-14 21:52:48 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-14 21:52:48 +0300
commitb6f72a52c7a000f146c5aff3ab8318293cbb1c42 (patch)
treebf876ac815cc99fa9102cc2da965c98ca588e889 /src/gui/setupinputpages.cpp
parent6db83b4ee1c20162a9dd31428cbc36ce7405352d (diff)
downloadmv-b6f72a52c7a000f146c5aff3ab8318293cbb1c42.tar.gz
mv-b6f72a52c7a000f146c5aff3ab8318293cbb1c42.tar.bz2
mv-b6f72a52c7a000f146c5aff3ab8318293cbb1c42.tar.xz
mv-b6f72a52c7a000f146c5aff3ab8318293cbb1c42.zip
Fix crash in setup input page with name gui.
Diffstat (limited to 'src/gui/setupinputpages.cpp')
-rw-r--r--src/gui/setupinputpages.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/setupinputpages.cpp b/src/gui/setupinputpages.cpp
index 32efcecdb..dbb05e4d5 100644
--- a/src/gui/setupinputpages.cpp
+++ b/src/gui/setupinputpages.cpp
@@ -21,6 +21,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "const/gui/pages.h"
+
#include "gui/setupinputpages.h"
#include "utils/gettext.h"
@@ -38,7 +40,7 @@
#include "debug.h"
-const char *const pages[] =
+const char *const pages[SETUP_PAGES + 1] =
{
// TRANSLATORS: input tab sub tab name
N_("Basic"),
@@ -63,7 +65,7 @@ const char *const pages[] =
nullptr
};
-SetupActionData *const setupActionData[] =
+SetupActionData *const setupActionData[SETUP_PAGES] =
{
setupActionDataBasic,
setupActionDataMove,