Skip to content

Commit

Permalink
Fixed bug #60 - Crash clicking on header colums.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Rawnsley committed Aug 2, 2017
1 parent d87afe7 commit f88acd4
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Reddit Wallpaper Changer/Proxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static WebClient setProxy()
Logging.LogMessageToFile("Unexpeced error setting proxy: " + ex.Message, 2);
}
}
//test

return wc;
}
}
Expand Down
28 changes: 25 additions & 3 deletions Reddit Wallpaper Changer/RWC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,15 @@ private void changeWallpaperTimer_Tick(object sender, EventArgs e)
private void blacklistDataGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
int rowIndex = e.RowIndex;
System.Diagnostics.Process.Start("http://reddit.com/" + blacklistDataGrid.Rows[e.RowIndex].Cells[2].Value.ToString());
try
{

System.Diagnostics.Process.Start("http://reddit.com/" + blacklistDataGrid.Rows[e.RowIndex].Cells[2].Value.ToString());
}
catch
{

}
}

//======================================================================
Expand All @@ -1631,7 +1639,14 @@ private void blacklistDataGrid_CellContentClick(object sender, DataGridViewCellE
private void historyDataGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
int rowIndex = e.RowIndex;
System.Diagnostics.Process.Start("http://reddit.com/" + historyDataGrid.Rows[e.RowIndex].Cells[2].Value.ToString());
try
{
System.Diagnostics.Process.Start("http://reddit.com/" + historyDataGrid.Rows[e.RowIndex].Cells[2].Value.ToString());
}
catch
{

}
}

//======================================================================
Expand All @@ -1640,7 +1655,14 @@ private void historyDataGrid_CellContentClick(object sender, DataGridViewCellEve
private void favouritesDataGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
int rowIndex = e.RowIndex;
System.Diagnostics.Process.Start("http://reddit.com/" + favouritesDataGrid.Rows[e.RowIndex].Cells[2].Value.ToString());
try
{
System.Diagnostics.Process.Start("http://reddit.com/" + favouritesDataGrid.Rows[e.RowIndex].Cells[2].Value.ToString());
}
catch
{

}
}

//======================================================================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,19 @@ E:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\bin\Deb
C:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\bin\Debug\System.Data.SQLite.dll
C:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\bin\Debug\System.Data.SQLite.xml
C:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\obj\Debug\Reddit Wallpaper Changer.csprojResolveAssemblyReference.cache
E:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\bin\Debug\Reddit Wallpaper Changer.exe.config
E:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\bin\Debug\Reddit Wallpaper Changer.exe
E:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\bin\Debug\Reddit Wallpaper Changer.pdb
E:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\bin\Debug\Newtonsoft.Json.dll
E:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\bin\Debug\System.Data.SQLite.dll
E:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\bin\Debug\System.Data.SQLite.xml
E:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\obj\Debug\Reddit Wallpaper Changer.csprojResolveAssemblyReference.cache
E:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\obj\Debug\Reddit_Wallpaper_Changer.PopupInfo.resources
E:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\obj\Debug\Reddit_Wallpaper_Changer.RWC.resources
E:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\obj\Debug\Reddit_Wallpaper_Changer.Properties.Resources.resources
E:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\obj\Debug\Reddit_Wallpaper_Changer.SearchWizard.resources
E:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\obj\Debug\Reddit_Wallpaper_Changer.Update.resources
E:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\obj\Debug\Reddit_Wallpaper_Changer.WallpaperTypes.resources
E:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\obj\Debug\Reddit Wallpaper Changer.csproj.GenerateResource.Cache
E:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\obj\Debug\Reddit Wallpaper Changer.exe
E:\Dropbox\C# Projects\Reddit-Wallpaper-Changer\Reddit-Wallpaper-Changer\Reddit Wallpaper Changer\obj\Debug\Reddit Wallpaper Changer.pdb
Binary file not shown.
Binary file not shown.
Binary file modified Reddit Wallpaper Changer/obj/Debug/Reddit Wallpaper Changer.exe
Binary file not shown.
Binary file not shown.

0 comments on commit f88acd4

Please sign in to comment.