mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
fix: crash when de-select commit using Ctrl
This commit is contained in:
parent
376f775078
commit
8c8e09aa67
2 changed files with 5 additions and 2 deletions
|
@ -9,6 +9,7 @@
|
||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
x:Class="SourceGit.Views.InteractiveRebase"
|
x:Class="SourceGit.Views.InteractiveRebase"
|
||||||
x:DataType="vm:InteractiveRebase"
|
x:DataType="vm:InteractiveRebase"
|
||||||
|
Icon="/App.ico"
|
||||||
Title="{DynamicResource Text.InteractiveRebase}"
|
Title="{DynamicResource Text.InteractiveRebase}"
|
||||||
Width="1080" Height="720"
|
Width="1080" Height="720"
|
||||||
WindowStartupLocation="CenterOwner">
|
WindowStartupLocation="CenterOwner">
|
||||||
|
@ -260,7 +261,9 @@
|
||||||
<GridSplitter Grid.Row="1"
|
<GridSplitter Grid.Row="1"
|
||||||
MinHeight="1"
|
MinHeight="1"
|
||||||
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
||||||
Background="Transparent"/>
|
Background="Transparent"
|
||||||
|
BorderThickness="0,1,0,0"
|
||||||
|
BorderBrush="{DynamicResource Brush.Border2}"/>
|
||||||
|
|
||||||
<Border Grid.Row="2" Background="{DynamicResource Brush.Window}">
|
<Border Grid.Row="2" Background="{DynamicResource Brush.Window}">
|
||||||
<Path Width="128" Height="128"
|
<Path Width="128" Height="128"
|
||||||
|
|
|
@ -59,7 +59,7 @@ namespace SourceGit.Views
|
||||||
disposable.Dispose();
|
disposable.Dispose();
|
||||||
|
|
||||||
var vm = DataContext as ViewModels.CommitDetail;
|
var vm = DataContext as ViewModels.CommitDetail;
|
||||||
if (vm == null)
|
if (vm == null || vm.Commit == null)
|
||||||
{
|
{
|
||||||
Content = null;
|
Content = null;
|
||||||
GC.Collect();
|
GC.Collect();
|
||||||
|
|
Loading…
Reference in a new issue