Subversion Repositories svn1

Rev

Rev 174 | Rev 176 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 174 Rev 175
Line 63... Line 63...
63
 *
63
 *
64
 *===========================================================================*/
64
 *===========================================================================*/
65
 
65
 
66
int main( int argc, char *argv[] )
66
int main( int argc, char *argv[] )
67
{
67
{
68
    char       *file_name = NULL;
68
    QString       eventFile;
69
 
-
 
70
    QApplication a(argc, argv);
69
    QApplication a(argc, argv);
71
 
70
 
72
    /*
71
    /*
73
    **  Verify command arguments
72
    **  Verify command arguments
74
    */
73
    */
Line 96... Line 95...
96
        {
95
        {
97
            /*
96
            /*
98
            **  Parameter without a switch
97
            **  Parameter without a switch
99
            **  Must be the input file name
98
            **  Must be the input file name
100
            */
99
            */
101
            if( file_name )                   /* Already defined */
100
            if( !eventFile.isEmpty() )                   /* Already defined */
102
            {
101
            {
103
                qWarning("Mutiple input files found");
102
                qWarning("Mutiple input files found");
104
            }
103
            }
105
            file_name = argv[0];
104
            eventFile = argv[0];
106
        }
105
        }
107
    }
106
    }
108
 
107
 
109
    QmConfig EventConfig(file_name);
108
    QmConfig EventConfig(eventFile);
110
    init_team_data();
109
    init_team_data();
111
 
110
 
112
    MainWindow w;
111
    MainWindow w;
113
    w.show();
112
    w.show();
114
 
113