[vlmc-devel] [PATCH] Make toolbar unmovable

Hugo Beauzée-Luyssen hugo at beauzee.fr
Mon Mar 7 09:57:08 CET 2016


On 03/07/2016 03:21 AM, Paweł Goliński wrote:
> When user tried to move toolbar, VLMC crashed with
> segmentation fault. This patch made toolbar unmovable,
> which solves the problem.
> ---
>   src/Gui/ui/MainWindow.ui | 31 ++++++++++++++++++++-----------
>   1 file changed, 20 insertions(+), 11 deletions(-)
>
> diff --git a/src/Gui/ui/MainWindow.ui b/src/Gui/ui/MainWindow.ui
> index 4640741..c8f1465 100644
> --- a/src/Gui/ui/MainWindow.ui
> +++ b/src/Gui/ui/MainWindow.ui
> @@ -27,7 +27,7 @@
>        <x>0</x>
>        <y>0</y>
>        <width>800</width>
> -     <height>17</height>
> +     <height>22</height>
>       </rect>
>      </property>
>      <widget class="QMenu" name="menuEdit">
> @@ -99,6 +99,15 @@
>      <property name="windowTitle">
>       <string>VLMC Toolbar</string>
>      </property>
> +   <property name="movable">
> +    <bool>false</bool>
> +   </property>
> +   <property name="allowedAreas">
> +    <set>Qt::TopToolBarArea</set>
> +   </property>
> +   <property name="floatable">
> +    <bool>false</bool>
> +   </property>
>      <attribute name="toolBarArea">
>       <enum>TopToolBarArea</enum>
>      </attribute>
> @@ -151,7 +160,7 @@
>      </property>
>      <property name="statusTip">
>       <string>Project Preferences</string>
> -  </property>
> +   </property>
>     </action>
>     <action name="actionPreview">
>      <property name="checkable">
> @@ -189,7 +198,7 @@
>      </property>
>      <property name="statusTip">
>       <string>Makes VLMC Fullscreen</string>
> -  </property>
> +   </property>
>     </action>
>     <action name="actionRender">
>      <property name="icon">
> @@ -216,7 +225,7 @@
>      </property>
>      <property name="statusTip">
>       <string>Loads a VLMC Project</string>
> -  </property>
> +   </property>
>     </action>
>     <action name="actionSave">
>      <property name="icon">
> @@ -228,7 +237,7 @@
>      </property>
>      <property name="statusTip">
>       <string>Saves a VLMC Project</string>
> -  </property>
> +   </property>
>     </action>
>     <action name="actionImport">
>      <property name="icon">
> @@ -252,7 +261,7 @@
>      </property>
>      <property name="statusTip">
>       <string>Project Preferences</string>
> -  </property>
> +   </property>
>     </action>
>     <action name="actionSave_As">
>      <property name="icon">
> @@ -264,7 +273,7 @@
>      </property>
>      <property name="statusTip">
>       <string>Save a VLMC project as a different name</string>
> -  </property>
> +   </property>
>     </action>
>     <action name="actionClose_Project">
>      <property name="icon">
> @@ -276,7 +285,7 @@
>      </property>
>      <property name="statusTip">
>       <string>Closes a VLMC project</string>
> -  </property>
> +   </property>
>     </action>
>     <action name="actionCrash">
>      <property name="text">
> @@ -293,7 +302,7 @@
>      </property>
>      <property name="statusTip">
>       <string>Undoes the previous action</string>
> -  </property>
> +   </property>
>     </action>
>     <action name="actionRedo">
>      <property name="icon">
> @@ -305,7 +314,7 @@
>      </property>
>      <property name="statusTip">
>       <string>Redoes the previous action</string>
> -  </property>
> +   </property>
>     </action>
>     <action name="actionShare_On_Internet">
>      <property name="icon">
> @@ -362,7 +371,7 @@
>      </property>
>      <property name="statusTip">
>       <string>Use the Scissor Tool to cut regions in the timeline</string>
> -  </property>
> +   </property>
>     </action>
>    </widget>
>    <resources>
>

Hi,

I can't reproduce the issue, but this would not be the proper fix 
anyway, unless the crash lies in Qt for some reason.
Do you have a backtrace?

(Remember that to get a usable backtrace, VLMC needs to be built without 
the crash handler)

Regards,


More information about the Vlmc-devel mailing list