diff --git a/mainwindow.cpp b/mainwindow.cpp
index f2b37e9..08a0432 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -204,7 +204,6 @@ void MainWindow::clearAllValues(){
void MainWindow::on_castTable_cellChanged(int row, int column)
{
- string test;
//when each row, column a changed, update link in column 4 for that row.
if(column != 3) {
for (int i = 0; i < ui-> castTable -> rowCount(); i++) {
@@ -229,11 +228,16 @@ void MainWindow::on_castTable_cellChanged(int row, int column)
void MainWindow::on_castTable_cellClicked(int row, int column)
{
string urlToOpen = "";
- if(column == 3){
- urlToOpen = ui->castTable->item(row,column)->text().toStdString();
- }
- if (urlToOpen != ""){
- QDesktopServices::openUrl(QUrl(QString::fromStdString(urlToOpen)));
- }
+ QString actorName = "";
+ QTableWidgetItem * actor = ui -> castTable -> item(row, 0);
+ actorName = actor->text();
+ if (actorName != QString::fromStdString("")) {
+ if(column == 3){
+ urlToOpen = ui->castTable->item(row,column)->text().toStdString();
+ }
+ if (urlToOpen != ""){
+ QDesktopServices::openUrl(QUrl(QString::fromStdString(urlToOpen)));
+ }
+ }
}
diff --git a/mainwindow.ui b/mainwindow.ui
index 2210cd9..4b71926 100644
--- a/mainwindow.ui
+++ b/mainwindow.ui
@@ -6,12 +6,12 @@
0
0
- 811
- 769
+ 865
+ 822
- Bootleg NFO Builder for Plex
+ NFO Builder for Plex
@@ -21,104 +21,112 @@
Qt::LeftToRight
-
- -
-
-
-
-
-
- Show Name
-
-
-
- -
-
-
- The shows name
-
-
-
- -
-
-
- Performance Date
-
-
-
- -
-
-
- YYYY-MM-DD
-
-
-
- -
-
-
- Location
-
-
-
- -
-
-
- Location/Studio
-
-
-
- -
-
-
- Tag Line
-
-
-
- -
-
-
- A tagline for the show
-
-
-
- -
-
-
- Synopsis
-
-
-
- -
-
-
- A brief synopsis of the show, or notes
-
-
-
- -
-
-
- Show Poster URL
-
-
-
- -
-
-
- Full URL to image to use as Poster
-
-
-
-
-
- -
+
+ false
+
+
+
-
+
+
+ Show Name
+
+
+
+ -
+
+
+ The shows name
+
+
+
+ -
+
+
+ Performance Date
+
+
+
+ -
+
+
+ YYYY-MM-DD
+
+
+
+ -
+
+
+ Location
+
+
+
+ -
+
+
+ true
+
+
+ Location/Studio
+
+
+
+ -
+
+
+ Tag Line
+
+
+
+ -
+
+
+ A tagline for the show
+
+
+
+ -
+
+
+ Synopsis
+
+
+
+ -
+
+
+ A brief synopsis of the show, or notes
+
+
+
+ -
+
+
+ Show Poster URL
+
+
+
+ -
+
+
+ Full URL to image to use as Poster
+
+
+
+ -
Cast Members
- -
+
-
+
+
+ 0
+ 300
+
+
40
@@ -202,23 +210,218 @@
ItemIsSelectable|ItemIsEditable|ItemIsDragEnabled|ItemIsDropEnabled|ItemIsEnabled
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
- -
+
-
Output folder
- -
+
-
e.g C:/Users/Pete/Desktop
- -
+
-
Create NFO
@@ -233,7 +436,7 @@
0
0
- 811
+ 865
30