<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="12" style="border: 1px #c9c399 solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="https://git.reviewboard.kde.org/r/122197/">https://git.reviewboard.kde.org/r/122197/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<p style="margin-top: 0;">On Февраль 4th, 2015, 10:22 д.п. UTC, <b>Jarosław Staniek</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
<thead>
<tr>
<th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
<a href="https://git.reviewboard.kde.org/r/122197/diff/1-2/?file=344091#file344091line100" style="color: black; font-weight: bold; text-decoration: underline;">kexi/migration/AlterSchemaWidget.cpp</a>
<span style="font-weight: normal;">
(Diff revisions 1 - 2)
</span>
</th>
</tr>
</thead>
<tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
<tr>
<td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">AlterSchemaWidget::~AlterSchemaWidget()</pre></td>
</tr>
</tbody>
<tbody>
<tr>
<th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">96</font></th>
<td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "> <span class="n">m_newSchema</span><span class="o">-></span><span class="n">setName</span><span class="p">(</span><span class="n">m_originalSchema</span><span class="o">-></span><span class="n">name</span><span class="p">()<span class="hl">.</span></span><span class="n"><span class="hl">replace</span></span><span class="p"><span class="hl">(</span></span><span class="sc"><span class="hl">'.'</span></span><span class="p"><span class="hl">,</span></span><span class="hl"> </span><span class="sc"><span class="hl">'_'</span></span><span class="p">));</span> <span class="c1">//Handle case where a file has been imported</span></pre></td>
<th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">95</font></th>
<td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "> <span class="n">m_newSchema</span><span class="o">-></span><span class="n">setName</span><span class="p">(</span><span class="n"><span class="hl">KexiUtils</span></span><span class="o"><span class="hl">::</span></span><span class="n"><span class="hl">stringToIdentifier</span></span><span class="p"><span class="hl">(</span></span><span class="n">m_originalSchema</span><span class="o">-></span><span class="n">name</span><span class="p">()));</span> <span class="c1">//Handle case where a file has been imported</span></pre></td>
</tr>
</tbody>
</table>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">No longer needed since m_tableName performs the conversion, am I right?</p></pre>
</blockquote>
</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Yes, you are :)</p></pre>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<p style="margin-top: 0;">On Февраль 4th, 2015, 10:22 д.п. UTC, <b>Jarosław Staniek</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
<thead>
<tr>
<th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
<a href="https://git.reviewboard.kde.org/r/122197/diff/1-2/?file=344091#file344091line127" style="color: black; font-weight: bold; text-decoration: underline;">kexi/migration/AlterSchemaWidget.cpp</a>
<span style="font-weight: normal;">
(Diff revisions 1 - 2)
</span>
</th>
</tr>
</thead>
<tbody>
<tr>
<th bgcolor="#f0f0f0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">123</font></th>
<td bgcolor="#ffffff" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "> <span class="n">kDebug</span><span class="p">()</span> <span class="o"><<</span> <span class="n">m_newSchema</span><span class="o">-></span><span class="n">field</span><span class="p">(</span><span class="n">m_selectedColumn</span><span class="p">)</span><span class="o">-></span><span class="n">typeName</span><span class="p">()</span> <span class="o"><<</span> <span class="n">m_types</span><span class="p">.</span><span class="n">indexOf</span><span class="p">(</span><span class="n">m_newSchema</span><span class="o">-></span><span class="n">field</span><span class="p">(</span><span class="n">m_selectedColumn</span><span class="p">)</span><span class="o">-></span><span class="n">typeName</span><span class="p">());</span></pre></td>
<th bgcolor="#f0f0f0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">114</font></th>
<td bgcolor="#ffffff" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "> <span class="n">kDebug</span><span class="p">()</span> <span class="o"><<</span> <span class="n">m_newSchema</span><span class="o">-></span><span class="n">field</span><span class="p">(</span><span class="n">m_selectedColumn</span><span class="p">)</span><span class="o">-></span><span class="n">typeName</span><span class="p">()</span> <span class="o"><<</span> <span class="n">m_types</span><span class="p">.</span><span class="n">indexOf</span><span class="p">(</span><span class="n">m_newSchema</span><span class="o">-></span><span class="n">field</span><span class="p">(</span><span class="n">m_selectedColumn</span><span class="p">)</span><span class="o">-></span><span class="n">typeName</span><span class="p">());</span></pre></td>
</tr>
</tbody>
</table>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">When importing e.g. an empty ODS file m_newSchema->field(m_selectedColumn) can be NULL --> crash</p></pre>
</blockquote>
</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Maybe we should show error message in case of an empty ODS?</p></pre>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<p style="margin-top: 0;">On Февраль 4th, 2015, 10:22 д.п. UTC, <b>Jarosław Staniek</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
<thead>
<tr>
<th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
<a href="https://git.reviewboard.kde.org/r/122197/diff/2/?file=346591#file346591line53" style="color: black; font-weight: bold; text-decoration: underline;">kexi/migration/AlterSchemaWidget.cpp</a>
<span style="font-weight: normal;">
(Diff revision 2)
</span>
</th>
</tr>
</thead>
<tbody>
<tr>
<th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
<td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
<th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">53</font></th>
<td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "> <span class="n">m_tableName</span><span class="o">-></span><span class="n">nameLineEdit</span><span class="p">()</span><span class="o">-></span><span class="n">setReadOnly</span><span class="p">(</span><span class="nb">true</span><span class="p">);</span></pre></td>
</tr>
</tbody>
</table>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Why this? We want to give user possibility to enter name caption explicitly.</p></pre>
</blockquote>
</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">When entering name explicitly via "name" field, caption is not updated and kinda confusing IMO. I've deleted this line though.</p></pre>
<br />
<p>- Roman</p>
<br />
<p>On Февраль 5th, 2015, 12:10 п.п. UTC, Roman Shtemberko wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="12" style="border: 1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tr>
<td>
<div>Review request for Calligra, Adam Pigg, Jarosław Staniek, Radosław Wicik, and Wojciech Kosowicz.</div>
<div>By Roman Shtemberko.</div>
<p style="color: grey;"><i>Updated Фев. 5, 2015, 12:10 п.п.</i></p>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Bugs: </b>
<a href="http://bugs.kde.org/show_bug.cgi?id=336815">336815</a>
</div>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt;">Repository: </b>
calligra
</div>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Fix 336815 (path issue)
Also have fixed with this patch:
Check for an empty name.
Names are no more converted to the lower case (there is some conflicts with this behavior, imported tables can not be opened after this (only after restarting an app (!?)))
Check if name is not starting with a digit (conflicts with '_' at the begining as well).
Default name is added based on sheet selected.</p></pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>kexi/main/KexiMainWindow.cpp <span style="color: grey">(f499951)</span></li>
<li>kexi/migration/AlterSchemaTableModel.h <span style="color: grey">(2090b35)</span></li>
<li>kexi/migration/AlterSchemaTableModel.cpp <span style="color: grey">(86ef62e)</span></li>
<li>kexi/migration/AlterSchemaWidget.h <span style="color: grey">(b29e7f9)</span></li>
<li>kexi/migration/AlterSchemaWidget.cpp <span style="color: grey">(ea7fedd)</span></li>
<li>kexi/migration/importtablewizard.h <span style="color: grey">(a0b4dca)</span></li>
<li>kexi/migration/importtablewizard.cpp <span style="color: grey">(f3d02b9)</span></li>
<li>kexi/plugins/migration/keximigrationpart.cpp <span style="color: grey">(03c674e)</span></li>
<li>kexi/widget/KexiConnectionSelectorWidget.cpp <span style="color: grey">(48d3f7e)</span></li>
</ul>
<p><a href="https://git.reviewboard.kde.org/r/122197/diff/" style="margin-left: 3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>