mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-01-16 04:12:03 +01:00
- disabled drag&drop for readonly channel lists
- fixed class cast exception when saving panasonic files after applying a reference list
This commit is contained in:
@@ -531,7 +531,7 @@ order by s.ntype,major_channel
|
||||
cmd.Parameters.Add(new SQLiteParameter("@lock", DbType.Int32));
|
||||
cmd.Parameters.Add(new SQLiteParameter("@skip", DbType.Int32));
|
||||
cmd.Prepare();
|
||||
foreach (DbChannel channel in channelList.Channels)
|
||||
foreach (ChannelInfo channel in channelList.Channels)
|
||||
{
|
||||
if (channel.NewProgramNr < 0)
|
||||
continue;
|
||||
@@ -550,7 +550,7 @@ order by s.ntype,major_channel
|
||||
cmd.CommandText = "delete from SVL where rowid=@rowid";
|
||||
cmd.Parameters.Clear();
|
||||
cmd.Parameters.Add(new SQLiteParameter("@rowid", DbType.Int32));
|
||||
foreach (DbChannel channel in channelList.Channels)
|
||||
foreach (ChannelInfo channel in channelList.Channels)
|
||||
{
|
||||
if (channel.NewProgramNr >= 0)
|
||||
continue;
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace ChanSort.Ui
|
||||
{
|
||||
public partial class MainForm : XtraForm
|
||||
{
|
||||
public const string AppVersion = "v2013-06-27";
|
||||
public const string AppVersion = "v2013-06-28";
|
||||
|
||||
private const int MaxMruEntries = 5;
|
||||
|
||||
@@ -1761,6 +1761,8 @@ namespace ChanSort.Ui
|
||||
var view = (GridView)sender;
|
||||
if (this.downHit == null || downHit.RowHandle < 0 || e.Button != MouseButtons.Left || view.ActiveEditor != null || ModifierKeys != Keys.None)
|
||||
return;
|
||||
if (this.currentChannelList == null || this.currentChannelList.ReadOnly)
|
||||
return;
|
||||
// drag/drop only allowed when left grid is sorted by NewSlotNr
|
||||
if (!this.IsLeftGridSortedByNewProgNr)
|
||||
return;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
Version v2013-06-27 ======================================================
|
||||
Version v2013-06-28 ======================================================
|
||||
|
||||
Changes:
|
||||
- FIX: Error saving a Panasonic file after applying a reference list
|
||||
- Improved experimental support for Panasonic channel lists
|
||||
|
||||
The complete change log can be found at the end of this document
|
||||
|
||||
Reference in New Issue
Block a user