- 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:
hbeham
2013-06-28 10:13:12 +02:00
parent a6a7eadb0f
commit 0e17902c70
3 changed files with 7 additions and 4 deletions

View File

@@ -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;