src/history.cpp

changeset 220
1f368f0a323b
parent 192
c414924a647c
child 224
805bf9ef9529
--- a/src/history.cpp	Sun May 19 00:47:07 2013 +0300
+++ b/src/history.cpp	Sun May 19 01:31:13 2013 +0300
@@ -77,8 +77,14 @@
 	
 	// =========================================================================
 	void updateActions () {
+#ifndef RELEASE
 		ACTION (undo)->setEnabled (s_pos > -1);
 		ACTION (redo)->setEnabled (s_pos < (long) s_entries.size () - 1);
+#else
+		// These are kinda unstable so they're disabled for release builds
+		ACTION (undo)->setEnabled (false);
+		ACTION (redo)->setEnabled (false);
+#endif // RELEASE
 		
 		// Update the window title as well
 		g_win->setTitle ();

mercurial