mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Remove the deactivated MacOS dependent code for reacting on Cocoa events for file associations from main.cpp Try to implement the same functionality by reacting on QFileOpenEvent in the Application class.
15 lines
334 B
C++
15 lines
334 B
C++
#include "Application.h"
|
|
|
|
int main( int argc, char ** argv )
|
|
{
|
|
// Create application object. All the initialisation stuff happens in there
|
|
Application a(argc, argv);
|
|
|
|
// Quit application now if user doesn't want to see the UI
|
|
if(a.dontShowMainWindow())
|
|
return 0;
|
|
|
|
// Run application
|
|
return a.exec();
|
|
}
|