Fix crash in create catalog dialog if changing from EPUB to MOBI and then switching tabs

This commit is contained in:
Kovid Goyal 2019-05-21 19:48:54 +05:30
parent e501fa8d86
commit b8832d5a31
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 741 additions and 691 deletions

View File

@ -33,6 +33,7 @@ class PluginWidget(QWidget,Ui_Form):
TITLE = _('E-book options')
HELP = _('Options specific to')+' AZW3/EPUB/MOBI '+_('output')
DEBUG = False
handles_scrolling = True
# Output synced to the connected device?
sync_enabled = True

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>658</width>
<height>603</height>
<width>742</width>
<height>663</height>
</rect>
</property>
<property name="sizePolicy">
@ -19,7 +19,49 @@
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<layout class="QHBoxLayout" name="horizontalLayout_10">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QScrollArea" name="scrollArea">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>740</width>
<height>661</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_11">
<item>
<widget class="QWidget" name="widget" native="true">
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QGroupBox" name="catalogPresets">
<property name="sizePolicy">
@ -468,7 +510,7 @@ The default pattern \[.+\]|\+ excludes tags of the form [tag], e.g., [Test book]
<string>&amp;Before</string>
</property>
<attribute name="buttonGroup">
<string>merge_options_bg</string>
<string notr="true">merge_options_bg</string>
</attribute>
</widget>
</item>
@ -481,7 +523,7 @@ The default pattern \[.+\]|\+ excludes tags of the form [tag], e.g., [Test book]
<string>&amp;After</string>
</property>
<attribute name="buttonGroup">
<string>merge_options_bg</string>
<string notr="true">merge_options_bg</string>
</attribute>
</widget>
</item>
@ -556,7 +598,7 @@ The default pattern \[.+\]|\+ excludes tags of the form [tag], e.g., [Test book]
<bool>true</bool>
</property>
<attribute name="buttonGroup">
<string>cover_options_bg</string>
<string notr="true">cover_options_bg</string>
</attribute>
</widget>
</item>
@ -566,7 +608,7 @@ The default pattern \[.+\]|\+ excludes tags of the form [tag], e.g., [Test book]
<string>Use existing cover</string>
</property>
<attribute name="buttonGroup">
<string>cover_options_bg</string>
<string notr="true">cover_options_bg</string>
</attribute>
</widget>
</item>
@ -719,6 +761,13 @@ The default pattern \[.+\]|\+ excludes tags of the form [tag], e.g., [Test book]
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
<buttongroups>